Merge pull request #60024 from nextcloud/backport/59952/stable32

[stable32] fix(core): provide valid initial state also on public templates
This commit is contained in:
Ferdinand Thiessen 2026-05-01 15:01:52 +02:00 committed by GitHub
commit 6907df44a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,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', '');