From 08f1cfa977ef1a3d6bac9ec459076c7df4044c15 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Tue, 10 Nov 2015 16:06:30 -0800 Subject: [PATCH] Fix double slash on URL when switching account. One too many ending forward slashes causes OpenIdService to redirect url to http://localhost:8080// Remove the extra slash on switch account. Bug: Issue 3664 Change-Id: I7fc66aaacc0c2f49a837222b2c2cf67a84ac967d --- .../src/main/java/com/google/gerrit/client/UserPopupPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/UserPopupPanel.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/UserPopupPanel.java index cfb7e9217a..1857043e70 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/UserPopupPanel.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/UserPopupPanel.java @@ -55,7 +55,7 @@ public class UserPopupPanel extends PopupPanel { switchAccount.setHref(Gerrit.getConfig().getSwitchAccountUrl()); } else if (Gerrit.getConfig().getAuthType() == AuthType.DEVELOPMENT_BECOME_ANY_ACCOUNT || Gerrit.getConfig().getAuthType() == AuthType.OPENID) { - switchAccount.setHref(Gerrit.selfRedirect("/login/")); + switchAccount.setHref(Gerrit.selfRedirect("/login")); } else { switchAccount.removeFromParent(); switchAccount = null;