Skip to content

Commit

Permalink
Add support for "return_to" in logout listener
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Sep 26, 2023
1 parent c652212 commit 8813b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/OryKratosClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getLoginResponse(Request $request): Response
*/
public function createLogoutFlow(Request $request): LogoutFlow
{
$returnTo = $request->getUriForPath('/');
$returnTo = $request->get(self::RETURN_PARAM, $request->getUriForPath('/'));

return $this->frontendApi->createBrowserLogoutFlow($this->getSessionCookie($request), $returnTo);
}
Expand Down

0 comments on commit 8813b0c

Please sign in to comment.