KEYCLOAK-483
Remove 'index.html' from console url
This commit is contained in:
parent
f08477ea66
commit
952f098440
1 changed files with 5 additions and 3 deletions
|
@ -250,9 +250,11 @@ public class AdminConsole {
|
|||
|
||||
@GET
|
||||
public Response getMainPage() throws URISyntaxException {
|
||||
return Response.status(302).location(
|
||||
AdminRoot.adminConsoleUrl(uriInfo).path("index.html").build(realm.getName())
|
||||
).build();
|
||||
if (!uriInfo.getRequestUri().getPath().endsWith("/")) {
|
||||
return Response.status(302).location(uriInfo.getRequestUriBuilder().path("/").build()).build();
|
||||
} else {
|
||||
return getResource("index.html");
|
||||
}
|
||||
}
|
||||
|
||||
@GET
|
||||
|
|
Loading…
Reference in a new issue