Skip to content

Commit

Permalink
Merge pull request #164 from owncloud/relative-notification-url
Browse files Browse the repository at this point in the history
Use relative url instead of absoulute url
  • Loading branch information
Jan Ackermann committed Apr 15, 2021
2 parents 750c31e + b91153c commit 5500580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 5500580

Please sign in to comment.