New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL rewrite at the agent web server to support multiple dashboard versions #15247
Conversation
…ep state; support redirects to fix directories
…are data after the version
Using However
but then it goes on to request With
no attempt to get In both cases
|
@stelfrag check my |
The problem with unknown directories (or directories without an index.html in them) is that the new UI puts its own routing information in the URL path. So, when the user asks for a non-existing path, we serve |
This PR fixes the URL rewrite to work like this:
/v0/
,/v1/
,/v2/
are now handled in the code./vN/
together with/host/NAME/
and/node/ID/
work in parallel, both as/v2/host/X/
and/host/X/v2/
./vN/
works also for API requests as/v2/api/v1/endpoint
.Tested all dashboards (old, v1, v2) and all work ok with this.