commit | 08f1cfa977ef1a3d6bac9ec459076c7df4044c15 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david.ostrovsky@gmail.com> | Tue Nov 10 16:06:30 2015 -0800 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Wed Nov 11 01:42:13 2015 +0000 |
tree | cd587e937a22144da12849782ed69ba309e219b1 | |
parent | cf75006b102540c3ccc30ba3fc971f0c36c00ab2 [diff] |
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
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 cfb7e92..1857043 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 @@ 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;