-
Notifications
You must be signed in to change notification settings - Fork 73
Make both /ui/?query=
and /ui?query=
work
#649
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to redirect /ui
to /ui/
Usually, we use I think adding a redirection here is a little bit weird. It is not common to have this kind of redirection. |
I don't think it is weird, usually this redirection is done to support relative linking of assets and APIs. Maybe an example to make it clearer:
Thanks why I think a redirect is better in this case. And we would always be at the same "depth" for relative linking cc @eh-am |
@simonswine's reasoning is sound, another way of looking at this is that the entire Honestly I didn't do any work here hoping that we would default the UI to the root instead of |
This comment was marked as off-topic.
This comment was marked as off-topic.
We will provide more official guidance in this at our next community meeting / via other channels. However, just so you are in the loop as you've been helping us with this (thanks btw!) our long term goal is merging the Pyroscope and Phlare projects. Once they are merged there will likely be two ways to view profiling data:
In the meantime, we've made this UI compatible with both phlare and pyroscope projects to unify the frontend which users interact with while we work on merging the backend. That way when the projects are eventually merged it will be done in the "background" with minimum disruption to users (from a UI perspective) |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sounds reasonable. Thanks for your review!
Make sense. I also prefer to move UI to the root and move admin pages to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Make both `/ui/?query=` and `/ui?query=` work * Add redirection * Address comment
Follow up #645
Test locally: