KEYCLOAK-5487 (#4603)

This commit is contained in:
Stian Thorgersen 2017-10-24 10:49:08 +02:00 committed by GitHub
parent 330f2acc29
commit f0bbcbf0fd

View file

@ -85,13 +85,10 @@ public class AccountConsole {
URI baseUri = uriInfo.getBaseUri(); URI baseUri = uriInfo.getBaseUri();
String authUrl = baseUri.toString(); map.put("authUrl", session.getContext().getContextPath());
authUrl = authUrl.substring(0, authUrl.length() - 1); map.put("baseUrl", session.getContext().getContextPath() + "/realms/" + realm.getName() + "/account");
map.put("authUrl", authUrl);
map.put("baseUrl", authUrl + "/realms/" + realm.getName() + "/account");
map.put("realm", realm.getName()); map.put("realm", realm.getName());
map.put("resourceUrl", Urls.themeRoot(baseUri) + "/account/" + theme.getName()); map.put("resourceUrl", Urls.themeRoot(baseUri).getPath() + "/account/" + theme.getName());
map.put("resourceVersion", Version.RESOURCES_VERSION); map.put("resourceVersion", Version.RESOURCES_VERSION);
String[] referrer = getReferrer(); String[] referrer = getReferrer();