From 2ba351e0691d5d6f7c50ff79ce9fdde13a55b8d8 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 25 Jul 2023 15:17:04 -0400 Subject: [PATCH] Fix `getPostLogOutUrl` to include `contextPath` --- .../plugins/googlelogin/GoogleOAuth2SecurityRealm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jenkinsci/plugins/googlelogin/GoogleOAuth2SecurityRealm.java b/src/main/java/org/jenkinsci/plugins/googlelogin/GoogleOAuth2SecurityRealm.java index 1559946..3b69ddb 100644 --- a/src/main/java/org/jenkinsci/plugins/googlelogin/GoogleOAuth2SecurityRealm.java +++ b/src/main/java/org/jenkinsci/plugins/googlelogin/GoogleOAuth2SecurityRealm.java @@ -177,7 +177,7 @@ public Authentication authenticate(Authentication authentication) throws Authent @Override protected String getPostLogOutUrl(StaplerRequest req, Authentication auth) { - return "securityRealm/loggedOut"; + return req.getContextPath() + "/securityRealm/loggedOut"; } /**