aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-07-16 09:58:33 +0200
committerJulius Härtl <jus@bitgrid.net>2022-07-16 10:00:53 +0200
commitca0435382d91a734842b74c097c4f57590c6e8a0 (patch)
tree0d535ebbed04d8e5f0b171a51a983e4df616848a /apps/dashboard
parent16b06dd75889bef318881a4783cff03aaeb971d9 (diff)
downloadnextcloud-server-ca0435382d91a734842b74c097c4f57590c6e8a0.tar.gz
nextcloud-server-ca0435382d91a734842b74c097c4f57590c6e8a0.zip
Allow to override #app-content and #app-navigation hrefs for content skipping
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard')
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php
index 3763b07e7bc..4d4f6a5f31c 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -133,7 +133,10 @@ class DashboardController extends Controller {
$this->inititalState->provideInitialState('version', $this->config->getUserValue($this->userId, 'dashboard', 'backgroundVersion', 0));
$this->config->setUserValue($this->userId, 'dashboard', 'firstRun', '0');
- $response = new TemplateResponse('dashboard', 'index');
+ $response = new TemplateResponse('dashboard', 'index', [
+ 'id-app-content' => '#app-dashboard',
+ 'id-app-navigation' => null,
+ ]);
// For the weather widget we should allow the geolocation
$featurePolicy = new Http\FeaturePolicy();