summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-07-20 14:45:35 +0200
committerGitHub <noreply@github.com>2022-07-20 14:45:35 +0200
commitde08b53b4eaa69621de0e863071c55671e74441c (patch)
treeac765cb3e0747e29f8b4d2b5702620f4d2af56da /lib/private
parentf24ce9b530268139488827de954837dfc5f78a1b (diff)
parente3dc796e5d0c7ac48441ebf2e5b3ca59f3b14b82 (diff)
downloadnextcloud-server-de08b53b4eaa69621de0e863071c55671e74441c.tar.gz
nextcloud-server-de08b53b4eaa69621de0e863071c55671e74441c.zip
Merge pull request #33266 from nextcloud/bugfix/noid/skip-content-public
Add skip content buttons to the public page layout
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/TemplateLayout.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 96b785b2e1c..37f459ca52d 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -282,8 +282,8 @@ class TemplateLayout extends \OC_Template {
$this->assign('initialStates', $this->initialState->getInitialStates());
- $this->assign('id-app-content', '#app-content');
- $this->assign('id-app-navigation', '#app-navigation');
+ $this->assign('id-app-content', $renderAs === TemplateResponse::RENDER_AS_USER ? '#app-content' : '#content');
+ $this->assign('id-app-navigation', $renderAs === TemplateResponse::RENDER_AS_USER ? '#app-navigation' : null);
}
/**