Commit 01b39f63 authored by anon's avatar anon

Issue #2779735 by anon: Ensure canonical URL in LinkitFilter

parent dc12ee45
......@@ -97,7 +97,7 @@ class LinkitFilter extends FilterBase implements ContainerFactoryPluginInterface
$element->setAttribute('href', $url);
else {
$url = $entity->toUrl()->toString(TRUE);
$url = $entity->toUrl('canonical')->toString(TRUE);
$element->setAttribute('href', $url->getGeneratedUrl());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment