Skip to content
Snippets Groups Projects
Commit 187b099a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by André Noack
Browse files

next attempt to redirect to personal start page by unsetting redirect page on...

next attempt to redirect to personal start page by unsetting redirect page on start page, fixes #5030

Closes #5030

Merge request studip/studip!3793
parent 989e6c9e
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,8 @@ final class AuthenticationMiddleware implements MiddlewareInterface
} else {
if (!match_route('dispatch.php/start')) {
$_SESSION['redirect_after_login'] = \Request::url();
} else {
unset($_SESSION['redirect_after_login']);
}
$response = $this->response_factory->createResponse(302);
return $response->withHeader('Location', \URLHelper::getURL('dispatch.php/login'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment