diff options
author | Joas Schilling <coding@schilljs.com> | 2022-07-18 13:52:48 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-07-18 13:52:48 +0200 |
commit | 5be5ff6708afa8a7f026ffbe187941e78fd4c793 (patch) | |
tree | 843e33bee268dd96b816945a069cb74ac85ec47c /lib/Controller/PageController.php | |
parent | 02c43073e474faad4ae5e3d1611086978b7178f4 (diff) |
Fix quick access anchors for navigation and content
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r-- | lib/Controller/PageController.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 42618fd97..aa1c18db7 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -270,7 +270,10 @@ class PageController extends Controller { $this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent()); $response = new TemplateResponse($this->appName, 'index', [ 'app' => Application::APP_ID, + 'id-app-content' => '#app-content-vue', + 'id-app-navigation' => '#app-navigation-vue', ]); + $csp = new ContentSecurityPolicy(); $csp->addAllowedConnectDomain('*'); $csp->addAllowedMediaDomain('blob:'); @@ -342,7 +345,11 @@ class PageController extends Controller { $this->publishInitialStateForGuest(); - $response = new PublicTemplateResponse($this->appName, 'index'); + $response = new PublicTemplateResponse($this->appName, 'index', [ + 'id-app-content' => '#app-content-vue', + 'id-app-navigation' => null, + ]); + $response->setFooterVisible(false); $csp = new ContentSecurityPolicy(); $csp->addAllowedConnectDomain('*'); |