jdtcn/HybridBlazor

Browser history navigation broken

Closed this issue · 2 comments

czorc commented

hi,
thank you for your work - the solution is very interesting.

However, I have the issue when navigating between pages and then using the browser back button to navigate to the previous page.
The URL is updated, but the page itself is not updated.

Would you have a solution or suggestion to fix this issue?

Many thanks in advance,
Christian

Environment:

  • Tested with the last repo-version
  • HybridType: HybridOnNavigation & HybridOnReady
  • Used Browser
    • Google Chrome
    • Firefox 97.0.1 (64-Bit)

Test

  • Debugging started (IIS Express)
  • Navigated to Counter
  • Navigated to Fetch
  • Navigated to Home
  • Browser history back button clicked
    • Result: URL changed to /fetchdata > the content remains unchanged
jdtcn commented

Hi!

Thank you for your interest and for the feedback. Indeed, there was a problem with the handling of popstate event, it turned out to be easy to fix: 21ff057

Also updated the dependencies to the latest versions.

czorc commented

Hi,
thank you for the quick fix.
had been able to validate it positively the very next day.
Thx,
christian