Closed (fixed)
Project:
Linkit
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Aug 2016 at 17:08 UTC
Updated:
19 Aug 2016 at 17:24 UTC
Jump to comment: Most recent
The Linkit Filter is using $entity->toUrl() to get entity URL's.
In some situations the default URL is not the canonical URL. If 'canonical' is added as an argument, it will always be the canonical.
$url = $entity->toUrl()->toString(TRUE);
Changing the above code to:
$url = $entity->toUrl('canonical')->toString(TRUE);
Comments
Comment #3
anon