diff -u b/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module --- b/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -309,10 +309,11 @@ $link = Url::fromRouteMatch(\Drupal::routeMatch())->getInternalPath(); $route_match = \Drupal::routeMatch(); - // Use the route's title instead of $variables['title'] since - // $variables['title'] may have been changed and may contains extraneous - // markup. - $title = \Drupal::service('title_resolver')->getTitle(\Drupal::request(), $route_match->getRouteObject()); + // Use the route's title when available since $variables['title'] may have + // been changed and may contains extraneous markup (e.g the markup created + // by quickedit module). + $title_resolver = \Drupal::service('title_resolver'); + $title = $title_resolver->getTitle(\Drupal::request(), $route_match->getRouteObject()) ? : $variables['title']; $query = array( 'link' => $link,