question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browser history navigation fails silently in v23 with v14 bootstrapping enabled

See original GitHub issue

Description 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)

  1. Start the application with the command ./gradlew jettyRun
  2. Open http://localhost:8080 in your browser.

Result of Step 2

  1. Click on the “Open second view”, you should be on the URL http://localhost:8080/second now

Result of Step 3

  1. Click on the browsers back button, your browsers URL should have changed to http://localhost:8080, without actually displaying the “Main” view.

Result of Step 4

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:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vaadin-botcommented, Oct 24, 2022

This ticket/PR has been released with Vaadin 23.1.13.

0reactions
vaadin-botcommented, Oct 28, 2022

This ticket/PR has been released with Vaadin 14.9.0.beta1 and is also targeting the upcoming stable 14.9.0 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

History - setuptools 65.6.3.post20221124 documentation
Users trying to install the unmaintained pathlib backport from PyPI/ sdist /source code may find problems when using setuptools >= 60.9.0 . This...
Read more >
Changelog | Meteor API Docs
Changes to keep everything compatible with MongoDB Server 5.x and MongoDB ... navigate to the app directory and open mongo shell: meteor mongo;...
Read more >
Kong Gateway Changelog | Kong Docs
Fixed an issue where the plugin was causing requests to silently fail on Kong Gateway data planes. Request Transformer ( request-transformer ).
Read more >
Announcement: /home/Support/LabKey Support Forum
Server version is 20.3. with an updated java 14.0.1+7, tomcat 9.0.26. ... earlier versions of Chrome and all other browsers don't exhibit the...
Read more >
CVE - Search Results - MITRE
v8cc9fd1f4597 and earlier does not escape the job name on the System Configuration History page, resulting in a stored cross-site scripting (XSS) vulnerability ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found