From 2e9a5bb829e9d3948f3e78a44e1aabf5396045fa Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <code@dgerhardt.net> Date: Fri, 9 Aug 2019 20:57:06 +0200 Subject: [PATCH] Fix logout redirection for /v2 --- .../de/thm/arsnova/controller/v2/AuthenticationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/thm/arsnova/controller/v2/AuthenticationController.java b/src/main/java/de/thm/arsnova/controller/v2/AuthenticationController.java index 5dff6b13a..c6065c0e2 100644 --- a/src/main/java/de/thm/arsnova/controller/v2/AuthenticationController.java +++ b/src/main/java/de/thm/arsnova/controller/v2/AuthenticationController.java @@ -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") -- GitLab