diff --git a/core/modules/system/src/Tests/Menu/AssertBreadcrumbTrait.php b/core/modules/system/src/Tests/Menu/AssertBreadcrumbTrait.php index 51fcf29..7c54770 100644 --- a/core/modules/system/src/Tests/Menu/AssertBreadcrumbTrait.php +++ b/core/modules/system/src/Tests/Menu/AssertBreadcrumbTrait.php @@ -71,7 +71,7 @@ protected function assertBreadcrumbParts($trail) { foreach ($trail as $path => $title) { // If the path is empty or does not start with a leading /, assume it // is an internal path that needs to be passed through _url(). - $url = $path == '' || $path[0] != '/' ? Url::fromUri('base://' . $path)->toString($path) : $path; + $url = $path == '' || $path[0] != '/' ? Url::fromUri('base://' . $path)->toString() : $path; $part = array_shift($parts); $pass = ($pass && $part['href'] === $url && $part['text'] === String::checkPlain($title)); }