From 441584b0d1339c36d9f48e4efa189aae1b296eee Mon Sep 17 00:00:00 2001 From: Marcus Funch Date: Sat, 31 May 2025 21:01:15 +0200 Subject: [PATCH] Show page-specific title before site name --- src/App/Page.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Page.php b/src/App/Page.php index 623f464086..a7337485ec 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -201,8 +201,8 @@ class Page implements ArrayAccess $this->page['title'] = $l10n->t(ucfirst($args->getModuleName())); } - // Prepend the sitename to the page title - $this->page['title'] = $config->get('config', 'sitename', '') . (!empty($this->page['title']) ? ' | ' . $this->page['title'] : ''); + // Append the sitename to the page title + $this->page['title'] = (!empty($this->page['title']) ? $this->page['title'] . ' | ' : '') . $config->get('config', 'sitename', ''); if (!empty(Renderer::$theme['stylesheet'])) { $stylesheet = Renderer::$theme['stylesheet'];