Admin Console Main page redirect #15649
haroldpirum
started this conversation in
New Admin Console
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
What is the reason the main page of admin console needs to redirect if trailing "/" is not specified. Is it a security feature?
It is causing a problem for use when using AWS API Gateway which removes trailing / and we get into infinite redirect loop when accessing admin console.
public Response getMainPage() throws IOException, FreeMarkerException { if (!session.getContext().getUri(UrlType.ADMIN).getRequestUri().getPath().endsWith("/")) { return Response.status(302).location(session.getContext().getUri(UrlType.ADMIN).getRequestUriBuilder().path("/").build()).build(); } ...
Thanks,
Harold
Beta Was this translation helpful? Give feedback.
All reactions