mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
1b0967bc79
commit
2b201acb5b
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ class TemplateLayout {
|
|||
$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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue