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
In Vaadin 24.4.0.alpha18, RouterLink does not update the browser URL #19080
Comments
Could you add sample views with navigation that replicates the issue as I could not replicate this using |
You can see this issue on the website https://decisionwanted.com/jobs Now click on the Main: The URL in the address bar will not change |
@caalador additional information: I am using a RouterLink inside the Tab, not a plain RouterLink:
Could the combination of RouterLink with Tab be the reason for this issue in 24.4.0.alpha18? UPDATED, No, this is not the case.. the RouterLink without Tab also doesn't work |
I see changes were made to the navigation logic at: It appears that the reason for this issue may be somewhere within those changes, potentially in Also I see |
That change should specifically fix also this issue and looking at the site index I can not see in the sources the continue method that should be available there. So I see there is
but it should have a continue clause
It would seem there has been some missmatch in the sources on build time. So after the build check the |
I removed the 'generated' folder and rebuilt the project. After that, I verified that Flow.tsx contains:
but it still doesn't work. Also, during the application work, I may see the following warning:
I also do not see views.js there, only views.ts |
Do you have a application bundle? It might not be rebuilt so that the new part would be added. |
Thanks, I removed src/main/bundles and they were rebuilt now. Now, when I click on the RouterLink, the URL in the address bar is changed correctly, but there is a new error: the view itself is not found - 'The requested page was not found. And I still have the followig warning: |
I downgraded to Vaadin 24.4.0.alpha17, and now everything is working fine again. |
Fix mistaken add of query parameters into the route breaking route resolution when navigating thrhough link. Fixes #19080
Fix mistaken add of query parameters into the route breaking route resolution when navigating thrhough link. part of #19080
Fix mistaken add of query parameters into the route breaking route resolution when navigating thrhough link. part of #19080
* fix: Query in path Fix mistaken add of query parameters into the route breaking route resolution when navigating thrhough link. part of #19080 * update path normalizing, fix server replace state to use location * change replace order
@caalador Thanks for looking into this! In which version is this fix going to be released? in 24.4.0.alpha21 ? |
It will be going out with Flow 24.4.0.alpha27 which should be in Vaadin 24.4.0.alpha21 |
Description of the bug
In Vaadin 24.4.0.alpha17 everything is working fine, but in Vaadin 24.4.0.alpha18, clicking on RouterLinks does not update the browser URL.
For example, I stay on
http://localhost:8080/notifications?status=pending
Then, clicking on the RouterLink with the following target:
http://localhost:8080/?lang=en
After that, I successfully moved to http://localhost:8080/?lang=en, but in the browser address bar, I still see http://localhost:8080/notifications?status=pending
In Vaadin 24.4.0.alpha17, everything is working fine
Expected behavior
browser url in address bar should change to the correct one
Minimal reproducible example
n/a
Versions
The text was updated successfully, but these errors were encountered: