Skip to content
Snippets Groups Projects
Commit 01b39f63 authored by Emil Stjerneman's avatar Emil Stjerneman
Browse files

Issue #2779735 by anon: Ensure canonical URL in LinkitFilter

parent dc12ee45
No related branches found
No related tags found
2 merge requests!78Issue #3472672: Fix the issues reported by PHP_CodeSniffer,!59Revert "Issue #2900766 by rubendello: Not all autocomplete values are...
......@@ -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());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment