From 1e9b70832eaebfafdf23f46af4bb825c93d16022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Wed, 15 Apr 2026 03:34:21 +0200 Subject: [PATCH] fix: Fix app name not translated in the title of public pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @nextcloud/vue automatically adds the localized app name to the page title if a page heading but not an explicit page title is given. The localized app name is expected to be provided in the "core->apps" initial state, but that was set only when rendering a page as a registered user. In public pages that data was not provided, so the title contained the app ID rather than the localized app name. Signed-off-by: Daniel Calviño Sánchez --- lib/private/TemplateLayout.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index bce2422be0abc..ed611b7539f72 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -163,6 +163,8 @@ public function getPageTemplate(string $renderAs, string $appId): ITemplate { $page->assign('appid', $appId); $page->assign('bodyid', 'body-public'); + $this->initialState->provideInitialState('core', 'apps', array_values($this->navigationManager->getAll())); + // Set logo link target $logoUrl = $this->config->getSystemValueString('logo_url', ''); $page->assign('logoUrl', $logoUrl);