diff --git a/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php b/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php index 95ef22a..4eca617 100644 --- a/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php +++ b/core/modules/link/src/Plugin/Field/FieldFormatter/LinkFormatter.php @@ -210,7 +210,7 @@ public function viewElements(FieldItemListInterface $items) { // attribute. // @todo Does RDF need a URL rather than an internal URI here? // @see \Drupal\rdf\Tests\Field\LinkFieldRdfaTest. - $content = str_replace(Url::SCHEME_INTERNAL . '/', '', $item->uri); + $content = str_replace(Url::SCHEME_INTERNAL . ':/', '', $item->uri); $item->_attributes += array('content' => $content); } }