diff --git a/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php b/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php
index f367ec9..59624ec 100644
--- a/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php
+++ b/core/modules/shortcut/lib/Drupal/shortcut/Tests/ShortcutLinksTest.php
@@ -65,6 +65,14 @@ public function testShortcutLinkAdd() {
       $this->assertTrue(in_array($this->container->get('path.alias_manager')->getSystemPath($test['path']), $paths), 'Shortcut created: ' . $test['path']);
       $this->assertLink($title, 0, 'Shortcut link found on the page.');
     }
+
+    // Test that the add link URL has the correct "name".
+    $this->drupalLogin($this->root_user);
+    theme_enable(array('seven'));
+    \Drupal::config('system.theme')->set('admin', 'seven')->save();
+    $this->container->get('config.factory')->get('node.settings')->set('use_admin_theme', '1')->save();
+    $this->drupalGet('admin/structure');
+    $this->assertPattern('#<a href="(.*)/admin/config/user-interface/shortcut/manage/default/add-link-inline\?token=(.*)name=Structure(.*)</a>#', 'Found shortcut name.');
   }
 
   /**
diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module
index b520e08..66694cc 100644
--- a/core/modules/shortcut/shortcut.module
+++ b/core/modules/shortcut/shortcut.module
@@ -407,8 +407,8 @@ function shortcut_preprocess_page(&$variables) {
     }
 
     $query = array(
-     'link' => $link,
-     'name' => drupal_get_title(),
+      'link' => $link,
+      'name' => $variables['title'],
     );
     $query += drupal_get_destination();
 
