From 646d8960d5264d047aefa816229a7a7dd8497791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 20 Apr 2020 10:11:19 +0200 Subject: [PATCH] Fix double slash in notification urls (fixes #1698) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Notification/Notifier.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 2c5d27b48..1365d8387 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -115,7 +115,7 @@ class Notifier implements INotifier { ] ] ); - $notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '//card/' . $cardId . ''); + $notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '/card/' . $cardId . ''); break; case 'card-overdue': $cardId = $notification->getObjectId(); @@ -123,7 +123,7 @@ class Notifier implements INotifier { $notification->setParsedSubject( (string) $l->t('The card "%s" on "%s" has reached its due date.', $params) ); - $notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '//card/' . $cardId . ''); + $notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '/card/' . $cardId . ''); break; case 'card-comment-mentioned': $cardId = $notification->getObjectId(); @@ -150,7 +150,7 @@ class Notifier implements INotifier { if ($notification->getMessage() === '{message}') { $notification->setParsedMessage($notification->getMessageParameters()['message']); } - $notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '//card/' . $cardId . ''); + $notification->setLink($this->url->linkToRouteAbsolute('deck.page.index') . '#!/board/' . $boardId . '/card/' . $cardId . ''); break; case 'board-shared': $boardId = $notification->getObjectId();