Skip to content

Commit 30172c5

Browse files
danxuliubackportbot[bot]
authored andcommitted
fix: Fix app name not translated in the title of public pages
@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 <danxuliu@gmail.com>
1 parent a0ad2f4 commit 30172c5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/private/TemplateLayout.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ public function getPageTemplate(string $renderAs, string $appId): ITemplate {
157157
$page->assign('appid', $appId);
158158
$page->assign('bodyid', 'body-public');
159159

160+
$this->initialState->provideInitialState('core', 'apps', array_values($this->navigationManager->getAll()));
161+
160162
// Set logo link target
161163
$logoUrl = $this->config->getSystemValueString('logo_url', '');
162164
$page->assign('logoUrl', $logoUrl);

0 commit comments

Comments
 (0)