From 51372ae0c2303159884fcd29f366a531fe589c3d Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Tue, 8 Mar 2016 10:20:31 +0900
Subject: [PATCH] Issue #2681753 by lluvigne, subharanjan, cilefen:
 "Permissions page" link in Admin > Appearance is hardcoded and breaks on
 subdirectory setup

---
 core/modules/node/node.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 7ef975926e48..593c263cd0cf 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -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';
-- 
GitLab