diff --git a/_extensions/s2_blog/Controller/YearPageController.php b/_extensions/s2_blog/Controller/YearPageController.php index 485a618..d84bef2 100644 --- a/_extensions/s2_blog/Controller/YearPageController.php +++ b/_extensions/s2_blog/Controller/YearPageController.php @@ -55,12 +55,12 @@ public function body(Request $request, HtmlTemplate $template): ?Response $template->setLink('up', $this->blogUrlBuilder->main()); if ($year > $this->startYear) { - $pageTitle = ' ' . $pageTitle; - $template->setLink('prev', $this->blogUrlBuilder->year($year - 1) . '/'); + $pageTitle = ' ' . $pageTitle; + $template->setLink('prev', $this->blogUrlBuilder->year($year - 1)); } if ($year < date('Y')) { - $pageTitle .= ' '; - $template->setLink('next', $this->blogUrlBuilder->year($year + 1) . '/'); + $pageTitle .= ' '; + $template->setLink('next', $this->blogUrlBuilder->year($year + 1)); } $template->putInPlaceholder('title', $pageTitle);