Browser history navigation fails silently in v23 with v14 bootstrapping enabled
See original GitHub issueDescription of the bug
When using server side navigation (e.g. UI.getCurrent().navigate("some-link")
) in a Vaadin v23.1.6 Application built with gradle and v14 bootstrapping enabled, the browser navigation history is displayed correctly, but going back via the browsers history does not open the previously opened pages, even though the URL in the browser is updated correctly.
Other links such as HTML Anchors or Router Links seem to not be affected by this issue.
Expected behavior
Going through the browsers history should work even with server-side navigation and v14 bootstrapping enabled.
Minimal reproducible example
Clone https://github.com/SoylentBob/vaadin-navigation-bug (the project is based on https://github.com/vaadin/base-starter-gradle)
- Start the application with the command
./gradlew jettyRun
- Open
http://localhost:8080
in your browser.
- Click on the “Open second view”, you should be on the URL
http://localhost:8080/second
now
- Click on the browsers back button, your browsers URL should have changed to
http://localhost:8080
, without actually displaying the “Main” view.
Setting the useDeprecatedV14Bootstrapping
flag in the build.gradle
file to false
seems to fix the bug in the attached test project, but is not feasible at the moment for the project that we noticed the bug in.
Versions
- Vaadin / Flow version: 23.1.6 (v14 Bootstrapping enabled)
- Java version: 17
- OS version:
- Browser version (if applicable):
- Application Server (if applicable):
- IDE (if applicable):
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
This ticket/PR has been released with Vaadin 23.1.13.
This ticket/PR has been released with Vaadin 14.9.0.beta1 and is also targeting the upcoming stable 14.9.0 version.