summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2016-08-05 17:22:59 (GMT)
committerEmil Stjerneman2016-08-05 17:22:59 (GMT)
commit01b39f632949b48b2cf5706a3893d48a33a4a8d0 (patch)
tree9c30a572b9b824370a38fc056ecbd805ddaa7704
parentdc12ee4568dc326d3bc3e252390a9b68a436260f (diff)
Issue #2779735 by anon: Ensure canonical URL in LinkitFilter
-rw-r--r--src/Plugin/Filter/LinkitFilter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Plugin/Filter/LinkitFilter.php b/src/Plugin/Filter/LinkitFilter.php
index f7c4dae..02636cc 100644
--- a/src/Plugin/Filter/LinkitFilter.php
+++ b/src/Plugin/Filter/LinkitFilter.php
@@ -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());
}