-
Notifications
You must be signed in to change notification settings - Fork 2k
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
UI: namespace not preserved across clicks #12022
Comments
Hey @mr-karan Thanks for bringing this to our attention! We'll have to look into this more to see if the fix is as straight-foward as it seems 😅. We'll keep this issue updated with new info when we get to this |
@Amier3 I'm on it! |
Thanks for the report @mr-karan. We noticed this happening as well (usually when sorting and searching, more details in #11327). That's why @ChaiWithJai re-factored how namespaces are handled in the UI in #12082, which will be released in Nomad 1.3.0. I just checked your reproduction steps in |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
1.2.0
Operating system and Environment details
Arch Linux, Firefox (
96.0.3 (64-bit)
)Issue
In the UI, when I navigate to a certain Allocation (
https://nomad.tld/ui/jobs/vector/vector
) for example, I am able to see the list of running tasks etc normally:However, when I reload the same page (using F5/Browser refresh button), I see this page:
I noticed this doesn't happen when
?namespace
is in the URL. So:https://nomad.tld/ui/jobs/vector/vector
reload doesn't workhttps://nomad.tld/ui/jobs/vector/vector?namespace=logging
reload works.I think the issue is that this
?namespace
is actually stripped off from the part of the URL when navigating inside the jobs.Reproduction steps
https://nomad.tld/ui/jobs?namespace=*
which is the default page.vector
takes me to:https://nomad.tld/ui/jobs/vector?namespace=logging
Tasks
/Allocation
, the?namepsace
is removed from the URL:https://nomad.tld/ui/jobs/vector/vector
orhttps://nomad.tld/ui/allocations/89f9516e-1583-fe6a-6af3-d08dc99147da
default
namepsace)Expected Result
?namespace=<>
should be preserved when navigating across different sections of the UI.Actual Result
Since
?namespace
isn't present, reloading the link (or clicking directly without the frontend clicks on the SPA) leads to a 404.The text was updated successfully, but these errors were encountered: