Skip to content
Snippets Groups Projects
Commit b8d93bb8 authored by catch's avatar catch
Browse files

Issue #2681753 by lluvigne, subharanjan, cilefen: "Permissions page" link in...

Issue #2681753 by lluvigne, subharanjan, cilefen: "Permissions page" link in Admin > Appearance is hardcoded and breaks on subdirectory setup

(cherry picked from commit 51372ae0)
parent c536cbfa
No related branches found
No related tags found
No related merge requests found
......@@ -832,7 +832,7 @@ function node_form_system_themes_admin_form_alter(&$form, FormStateInterface $fo
$form['admin_theme']['use_admin_theme'] = array(
'#type' => 'checkbox',
'#title' => t('Use the administration theme when editing or creating content'),
'#description' => t('Control which roles can "View the administration theme" on the <a href=":permissions">Permissions page</a>.', array(':permissions' => '/admin/people/permissions')),
'#description' => t('Control which roles can "View the administration theme" on the <a href=":permissions">Permissions page</a>.', array(':permissions' => Url::fromRoute('user.admin_permissions')->toString())),
'#default_value' => \Drupal::configFactory()->getEditable('node.settings')->get('use_admin_theme'),
);
$form['#submit'][] = 'node_form_system_themes_admin_form_submit';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment