Skip to content

Commit

Permalink
KEYCLOAK-5487 (keycloak#4603)
Browse files Browse the repository at this point in the history
  • Loading branch information
stianst authored Oct 24, 2017
1 parent 330f2ac commit f0bbcbf
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,10 @@ public Response getMainPage() throws URISyntaxException, IOException, FreeMarker

URI baseUri = uriInfo.getBaseUri();

String authUrl = baseUri.toString();
authUrl = authUrl.substring(0, authUrl.length() - 1);

map.put("authUrl", authUrl);
map.put("baseUrl", authUrl + "/realms/" + realm.getName() + "/account");
map.put("authUrl", session.getContext().getContextPath());
map.put("baseUrl", session.getContext().getContextPath() + "/realms/" + realm.getName() + "/account");
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);

String[] referrer = getReferrer();
Expand Down

0 comments on commit f0bbcbf

Please sign in to comment.