Commit 2e9a5bb8 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Fix logout redirection for /v2

parent ec6ff7a0
......@@ -250,7 +250,7 @@ public class AuthenticationController extends AbstractController {
if (auth instanceof CasAuthenticationToken) {
return "redirect:" + apiPath + SecurityConfig.CAS_LOGOUT_PATH_SUFFIX;
}
return "redirect:" + request.getHeader("referer") != null ? request.getHeader("referer") : "/";
return "redirect:" + (request.getHeader("referer") != null ? request.getHeader("referer") : "/");
}
@GetMapping("/services")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment