From 21cd2f8b7f24239fe738e7a4feb7865fd235fb77 Mon Sep 17 00:00:00 2001 From: Cyssoo Date: Tue, 9 Dec 2025 13:52:35 +0100 Subject: [PATCH] Synchronize guide meta data with template page context --- controllers/front/page.php | 8 ++++++++ controllers/front/pages.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/controllers/front/page.php b/controllers/front/page.php index 96bf72da..d673428e 100644 --- a/controllers/front/page.php +++ b/controllers/front/page.php @@ -133,6 +133,14 @@ protected function setTemplateMeta(string $title, string $description): void 'meta_robots' => 'index,follow', 'canonical' => $this->getCanonicalURL(), ]); + + $page = $this->context->controller->getTemplateVarPage(); + $page['meta']['title'] = $title; + $page['meta']['description'] = $description; + $page['meta']['robots'] = 'index,follow'; + $page['canonical'] = $this->getCanonicalURL(); + + $this->context->smarty->assign('page', $page); } public function getCanonicalURL() diff --git a/controllers/front/pages.php b/controllers/front/pages.php index 9ed6c266..5e882ec8 100644 --- a/controllers/front/pages.php +++ b/controllers/front/pages.php @@ -195,6 +195,14 @@ protected function setTemplateMeta(string $title, string $description): void 'meta_robots' => 'index,follow', 'canonical' => $this->getCanonicalURL(), ]); + + $page = $this->context->controller->getTemplateVarPage(); + $page['meta']['title'] = $title; + $page['meta']['description'] = $description; + $page['meta']['robots'] = 'index,follow'; + $page['canonical'] = $this->getCanonicalURL(); + + $this->context->smarty->assign('page', $page); } public function getCanonicalURL()