fix(Routes): /projects instead of /project

This commit is contained in:
Matthieu Bessat 2022-08-02 22:14:23 +02:00
parent 92da1cc8e4
commit 7e6a7d47d6
3 changed files with 4 additions and 4 deletions

View file

@ -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']);

View file

@ -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 %)

View file

@ -14,7 +14,7 @@
<div class="project-content">
<h3 class="project-title">
{% if project.detailled %}
<a href="/project/{{ project.id }}">
<a href="/projects/{{ project.id }}">
{{ getDynLocalizedStr(project.name) }}
</a>
{% else %}