Bugfix: missing contextPath (#1434)

This commit is contained in:
Ludy
2024-06-12 21:36:18 +02:00
committed by GitHub
parent 5a50c54f29
commit 1e72960c5f
6 changed files with 29 additions and 11 deletions

View File

@@ -37,7 +37,8 @@ public class CustomAuthenticationSuccessHandler
: null;
if (savedRequest != null
&& !RequestUriUtils.isStaticResource(savedRequest.getRedirectUrl())) {
&& !RequestUriUtils.isStaticResource(
request.getContextPath(), savedRequest.getRedirectUrl())) {
// Redirect to the original destination
super.onAuthenticationSuccess(request, response, authentication);
} else {