diff --git a/lib/BackgroundJob.php b/lib/BackgroundJob.php index 0a7c86d..97ce9a1 100644 --- a/lib/BackgroundJob.php +++ b/lib/BackgroundJob.php @@ -97,7 +97,7 @@ protected function createPublicity($id, $authorId, $timeStamp) { ->setDateTime($dateTime) ->setObject('announcement', (string) $id) ->setSubject('announced', [$authorId]) - ->setLink($this->urlGenerator->linkToRouteAbsolute('announcementcenter.page.index')); + ->setLink($this->urlGenerator->linkToRoute('announcementcenter.page.index')); $this->userManager->callForAllUsers(function (IUser $user) use ($authorId, $event, $notification) { $event->setAffectedUser($user->getUID());