Skip to content

Commit

Permalink
Fix redirect fail on welsh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MishNajam committed Oct 30, 2023
1 parent 728fdf6 commit 978137a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public function handle(ServerRequestInterface $request): ResponseInterface
if ($request->getMethod() === 'POST') {
$signInLink = $this->serverUrlHelper->generate('/auth/redirect');
$uiLocale = (str_contains($signInLink, '/cy/') ? 'cy' : 'en');
if ($uiLocale === 'cy') {
$signInLink = trim($signInLink, '/cy');
}
$result = $this->authenticateOneLoginService->authenticate($uiLocale, $signInLink);
$this
->getSession($request, SessionMiddleware::SESSION_ATTRIBUTE)
Expand Down

0 comments on commit 978137a

Please sign in to comment.