Skip to content

Commit

Permalink
#5885 added context checking first if available to resolve context pa…
Browse files Browse the repository at this point in the history
…th before resolving from request
  • Loading branch information
touhidurabir committed May 24, 2024
1 parent 242dbe6 commit 084b555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/invitation/invitations/BaseInvitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function getAcceptUrl(): string
->url(
$request,
Application::ROUTE_PAGE,
$request->getContext()->getPath(),
$this->context?->getPath() ?? $request->getContext()->getPath(),
PKPInvitationHandler::REPLY_PAGE,
PKPInvitationHandler::REPLY_OP_ACCEPT,
null,
Expand All @@ -129,7 +129,7 @@ public function getDeclineUrl(): string
->url(
$request,
Application::ROUTE_PAGE,
$request->getContext()->getPath(),
$this->context?->getPath() ?? $request->getContext()->getPath(),
PKPInvitationHandler::REPLY_PAGE,
PKPInvitationHandler::REPLY_OP_DECLINE,
null,
Expand Down

0 comments on commit 084b555

Please sign in to comment.