From cd08a01ebedb4a3a67dce536e6ed249b292bee3c Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Thu, 2 May 2024 19:46:03 +0600 Subject: [PATCH] pkp/pkp-lib#5885 added context checking first if available to resolve context path before resolving from request --- classes/invitation/invitations/BaseInvitation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/invitation/invitations/BaseInvitation.php b/classes/invitation/invitations/BaseInvitation.php index c959f08e8ed..cf2a8248d29 100644 --- a/classes/invitation/invitations/BaseInvitation.php +++ b/classes/invitation/invitations/BaseInvitation.php @@ -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, @@ -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,