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 1/2] 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); From c7c33001ae6143892e35f1672f3c14886437945c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 21 Apr 2026 09:00:08 +0200 Subject: [PATCH 2/2] fix: Limit the list of exposed apps to the used app Signed-off-by: Joas Schilling --- lib/private/TemplateLayout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index ed611b7539f72..ee10a26b01dcd 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -163,7 +163,7 @@ 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())); + $this->initialState->provideInitialState('core', 'apps', [$this->navigationManager->get($appId)]); // Set logo link target $logoUrl = $this->config->getSystemValueString('logo_url', '');