Skip to content
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.getCurrent().navigate() does not change Browser URL #20478

Open
mshabarov opened this issue Nov 15, 2024 · 0 comments
Open

Ui.getCurrent().navigate() does not change Browser URL #20478

mshabarov opened this issue Nov 15, 2024 · 0 comments

Comments

@mshabarov
Copy link
Contributor

mshabarov commented Nov 15, 2024

Description of the bug

Based on provided forum post https://vaadin.com/forum/t/ui-getcurrent-navigate-does-not-change-browser-url/167788/1.

Hi. After upgrading from 24.4.12 to 24.5.4 i have the problem, that the Browser URL does not change when UI.getCurrent().navigate() is called. The content and page title are set but the url stays the same.
Eg. i am currently on a view with route “/alldashboards”. There is a grid and on item click UI.getCurrent().navigate(“dashboard/” + item.getId()) is called. Navigation itself seems to work, since title and content are set, but the url stays “/alldashboards”.
Disabling the react router in the application properties did in fact solve the problem. We had the problem with any call of navigate(). Calling navigateToClient() instead worked fine, but since this needs a lot of code changes, we stick with disabling the react router.

To be investigated and reproduced.

Expected behavior

URL should change.

Minimal reproducible example

No.
A first try could be to run 24.4.12 app, upgrade to 24.5.4, then run it without any cleanup.

Versions

  • Vaadin / Flow version: 24.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔎 Investigation
Status: 🟢Ready to Go
Development

No branches or pull requests

1 participant