diff --git a/src/routes.php b/src/routes.php index c6eb3e3..43ca67a 100644 --- a/src/routes.php +++ b/src/routes.php @@ -11,7 +11,7 @@ function addRoutes(\Slim\App $app): void $container = $app->getContainer(); $app->get('/', [Controller\HomeController::class, 'getHome']); - $app->get('/project/{id}', [Controller\HomeController::class, 'getProject']); + $app->get('/projects/{id}', [Controller\HomeController::class, 'getProject']); $app->get('/html-resume', [Controller\ResumeController::class, 'getHTMLResume']); $app->get('/json-resume', [Controller\ResumeController::class, 'getJsonResume']); diff --git a/templates/cv.tex b/templates/cv.tex index cabd411..86a2f6b 100644 --- a/templates/cv.tex +++ b/templates/cv.tex @@ -170,7 +170,7 @@ (% for exp in pro_projects %) \textbf{(( _self.cdate(exp.to) ))} & (% if exp.detailled %) - \link{(( website ))/(( getLocale() ))/project/(( exp.id )).html}{% + \link{(( website ))/(( getLocale() ))/projects/(( exp.id )).html}{% (% endif %) \textbf{(( getDynLocalizedStr(exp.name) ))}(% if exp.detailled %)}(% endif %) \\* \textbf{(( _self.cdate(exp.from) ))} & \textsc{(( exp.organization.name ))} (% if exp.organization.location is defined %), (( exp.organization.location ))(% endif %) \\* @@ -198,7 +198,7 @@ \begin{minipage}[t]{\dimexpr(\linewidth) - 1.5em} (% if exp.detailled %) - \link{(( website ))/(( getLocale() ))/project/(( exp.id )).html}{% + \link{(( website ))/(( getLocale() ))/projects/(( exp.id )).html}{% (% endif %) \textbf{\textsc{(( getDynLocalizedStr(exp.name) | raw ))}}% (% if exp.detailled %)}(% endif %) diff --git a/templates/home/projects_list.html.twig b/templates/home/projects_list.html.twig index b0ebfd9..5991203 100644 --- a/templates/home/projects_list.html.twig +++ b/templates/home/projects_list.html.twig @@ -14,7 +14,7 @@