.../system/lib/Drupal/system/Controller/SystemController.php | 7 +------
.../Drupal/system/Tests/System/DefaultMobileMetaTagsTest.php | 6 +++---
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/core/modules/system/lib/Drupal/system/Controller/SystemController.php b/core/modules/system/lib/Drupal/system/Controller/SystemController.php
index 259ef66..a51ae40 100644
--- a/core/modules/system/lib/Drupal/system/Controller/SystemController.php
+++ b/core/modules/system/lib/Drupal/system/Controller/SystemController.php
@@ -183,14 +183,9 @@ public function themeSetDefault() {
* The updated renderable array.
*/
public static function setLinkActiveClass(array $element, array $context) {
- // Ensure we only manipulate HTML markup.
- if (strpos($element['#markup'], '"') === FALSE)) {
+ if (strpos($element['#markup'], 'data-drupal-link-system-path="' . $context['path'] . '"') === FALSE && (!$context['front'] || strpos($element['#markup'], 'data-drupal-link-system-path="<front>"') === FALSE)) {
return $element;
}
diff --git a/core/modules/system/lib/Drupal/system/Tests/System/DefaultMobileMetaTagsTest.php b/core/modules/system/lib/Drupal/system/Tests/System/DefaultMobileMetaTagsTest.php
index aaaf2bd..ba0889f 100644
--- a/core/modules/system/lib/Drupal/system/Tests/System/DefaultMobileMetaTagsTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/System/DefaultMobileMetaTagsTest.php
@@ -22,9 +22,9 @@ public static function getInfo() {
function setUp() {
parent::setUp();
$this->default_metatags = array(
- 'MobileOptimized' => ' ' ' '',
+ 'HandheldFriendly' => '',
+ 'viewport' => '',
);
}