You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I added a few route masks and it used to all work properly, but now only 1 of 3 works and I can't figure out why the other two aren't working. Only /practice works properly. I also noticed that when i navigate from /practice to /report, it leaves off 2 search params that is not supposed to be in /report page.
Users are able to navigate from: /practice -> /report -> /review
Can you please provide a minimal complete example, e.g. by forking one of the examples on stackblitz?
I created one here. LINK
I was able to replicate the same behavior.
On Home page, click button to go to /practice
Notice that /practice route is masked correctly
Now click on button to go to /report
Notice that route is NOT is masked, there is extra expiresAt search params that is not supposed to be there. This is seems like it's persisting from /practice URL. The Devtool shows that current URL is masked, but it's not. The devtool also shows correct search params for /report, but the actual URL bar shows persited expiresAt from previously masked route (/practice)
kyusungpark
changed the title
URL Search Params Persisting on Page Navigation
URL Search Params Persisting on Page Navigation and Masking Not Working
Sep 16, 2024
Which project does this relate to?
Router
Describe the bug
Hi, I added a few route masks and it used to all work properly, but now only 1 of 3 works and I can't figure out why the other two aren't working. Only
/practice
works properly. I also noticed that when i navigate from/practice
to/report
, it leaves off 2 search params that is not supposed to be in /report page.Users are able to navigate from: /practice -> /report -> /review
My routes
My masks
/practice works properly
/report page - not masked
/review page - not masked, but search params from /practice is not persisted
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
n/a
Expected behavior
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: