mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #59952 from nextcloud/fix/public-view-inital-state
fix(core): provide valid initial state also on public templates
This commit is contained in:
commit
ca4a81e047
1 changed files with 2 additions and 1 deletions
|
|
@ -163,7 +163,8 @@ class TemplateLayout {
|
|||
$page->assign('appid', $appId);
|
||||
$page->assign('bodyid', 'body-public');
|
||||
|
||||
$this->initialState->provideInitialState('core', 'apps', [$this->navigationManager->get($appId)]);
|
||||
$currentAppData = $this->navigationManager->get($appId);
|
||||
$this->initialState->provideInitialState('core', 'apps', $currentAppData === null ? [] : [$currentAppData]);
|
||||
|
||||
// Set logo link target
|
||||
$logoUrl = $this->config->getSystemValueString('logo_url', '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue