diff --git a/core/src/plugins/feed.sql/SqlFeedStore.php b/core/src/plugins/feed.sql/SqlFeedStore.php index 35cea097d3..3102466283 100755 --- a/core/src/plugins/feed.sql/SqlFeedStore.php +++ b/core/src/plugins/feed.sql/SqlFeedStore.php @@ -305,6 +305,9 @@ public function dismissAlertById(ContextInterface $contextInterface, $alertId, $ return; } $url = $startEventNotif->getNode()->getUrl(); + if($url !== $startEventRow->index_path){ + $url = $startEventRow->index_path; + } $date = $startEventRow->edate; $newRes = dibi::query("SELECT [id] FROM [ajxp_feed] WHERE [etype] = %s AND ([user_id] = %s OR [user_group] = %s) AND [edate] <= %s AND [index_path] = %s ORDER BY [edate] DESC %lmt", "alert", $userId, $userGroup, $date, $url, $occurrences); $a = $newRes->fetchPairs();