mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
KEYCLOAK-483
Remove 'index.html' from console url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user