Commit 51372ae0 authored by catch's avatar catch

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
parent a888a694
...@@ -832,7 +832,7 @@ function node_form_system_themes_admin_form_alter(&$form, FormStateInterface $fo ...@@ -832,7 +832,7 @@ function node_form_system_themes_admin_form_alter(&$form, FormStateInterface $fo
$form['admin_theme']['use_admin_theme'] = array( $form['admin_theme']['use_admin_theme'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Use the administration theme when editing or creating content'), '#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'), '#default_value' => \Drupal::configFactory()->getEditable('node.settings')->get('use_admin_theme'),
); );
$form['#submit'][] = 'node_form_system_themes_admin_form_submit'; $form['#submit'][] = 'node_form_system_themes_admin_form_submit';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment