KEYCLOAK-483
Remove 'index.html' from console url
This commit is contained in:
1 parent
f08477ea66
commit
952f098440
1 file changed
+5
-3
@@ -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