From abc9556e1943731c3b7840aa1a5be4cb7a0a7247 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Nov 2026 14:39:54 +0100 Subject: [PATCH] fix(notification): Make relative action links absolute when preparing Notifications created before 0847ec9f still store relative action links. Since NC 31 the server logs a warning for each of them on every render, and the actions don't work in the desktop and mobile clients. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Simon L. --- lib/Notification/Notifier.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 6e9ed9366..2308edef3 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -198,6 +198,11 @@ private function prepareActions(INotification $notification): void { break; } + // notifications created before the links were made absolute still store relative links + if (str_starts_with($action->getLink(), '/')) { + $action->setLink($this->urlGenerator->getAbsoluteURL($action->getLink()), $action->getRequestType()); + } + $notification->addParsedAction($action); } }