Skip to content
Snippets Groups Projects
Commit f940fb32 authored by Nidhish Nanavati's avatar Nidhish Nanavati Committed by Bram Driesen
Browse files

Issue #3498389 by nidhish, bramdriesen, huangweiqiu: conflict with editor note module

parent c6af7fae
No related branches found
No related tags found
1 merge request!21Added canonical Link template for editor note
Pipeline #439488 passed with warnings
...@@ -132,7 +132,7 @@ class NotificationsWidgetService implements NotificationsWidgetServiceInterface ...@@ -132,7 +132,7 @@ class NotificationsWidgetService implements NotificationsWidgetServiceInterface
$excludeBundles = explode(',', (string) $excludeList); $excludeBundles = explode(',', (string) $excludeList);
$entityUrl = $message['content_link']; $entityUrl = $message['content_link'];
if ($entityUrl === '[entity:url]') { if ($entityUrl === '[entity:url]' && $entity->hasLinkTemplate('canonical')) {
$entityUrl = $entity->toUrl()->toString(); $entityUrl = $entity->toUrl()->toString();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment