From ca9847e8d2552c8d22f990e37317270654772f62 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 12 Jan 2026 23:02:45 -0500 Subject: [PATCH] fix: use absolute URL in notifications (#317) * fix: use absolute URL in notifications Fixes #270 Signed-off-by: Josh * chore: fixup typo (oops) Signed-off-by: Josh --------- Signed-off-by: Josh --- 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 0c1d8949..2fdcd09b 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -63,16 +63,16 @@ public function prepare(INotification $notification, string $languageCode): INot break; } - $link = $this->url->getWebroot() . '/settings/user/ai'; + $link = $this->url->linkToRouteAbsolute('settings.PersonalSettings.index', ['section' => 'ai']); $iconUrl = $this->url->getAbsoluteURL($this->url->imagePath(Application::APP_ID, 'app-dark.svg')); - $notification - ->setParsedSubject($subject) + $notification->setParsedSubject($subject) ->setParsedMessage($content) ->setLink($link) ->setIcon($iconUrl); $actionLabel = $params['actionLabel'] ?? $l->t('View quota'); + $action = $notification->createAction(); $action->setLabel($actionLabel) ->setParsedLabel($actionLabel)