diff --git a/apps/settings/lib/Controller/CommonSettingsTrait.php b/apps/settings/lib/Controller/CommonSettingsTrait.php index d5d004d8722d2..8ca62b9d1b3a6 100644 --- a/apps/settings/lib/Controller/CommonSettingsTrait.php +++ b/apps/settings/lib/Controller/CommonSettingsTrait.php @@ -150,6 +150,7 @@ private function getIndexResponse(string $type, string $section): TemplateRespon $activeSection = $this->settingsManager->getSection($type, $section); if ($activeSection) { $templateParams['pageTitle'] = $activeSection->getName(); + $templateParams['activeSectionId'] = $activeSection->getID(); } return new TemplateResponse('settings', 'settings/frame', $templateParams); diff --git a/apps/settings/templates/settings/frame.php b/apps/settings/templates/settings/frame.php index 93b03ac7eca1d..b2b2f04ebe0f2 100644 --- a/apps/settings/templates/settings/frame.php +++ b/apps/settings/templates/settings/frame.php @@ -40,7 +40,7 @@ $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]); $class = 'nav-icon-' . $form['anchor']; $sectionName = $form['section-name']; ?> -
  • > +
  • data-section-id="" data-section-type="personal"> > @@ -66,7 +66,7 @@ $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); $class = 'nav-icon-' . $form['anchor']; $sectionName = $form['section-name']; ?> -
  • > +
  • data-section-id="" data-section-type="admin"> > @@ -82,7 +82,6 @@ ?> - -
    +