Skip to content

Conversation

@tomasherceg
Copy link
Member

I discovered the following bug:

  1. User enters SPA.
  2. User performs a SPA navigation.
  3. User goes to another page that is outside of SPA (for example, a PDF document).
    This causes the beforeunload event where we were saving the state to history.state. However, some fields (such as type metadata) were coming from the first SPA page and not from the last SPA page the user was interacting with.
  4. User returns via the browser Back button.

This was causing an error that the viewmodel was not found in type metadata map - it was coming from the first page and not from the last visited SPA page.
The same probably applies to viewModelCacheId.

@exyi exyi added this to the Version 4.3 milestone Sep 19, 2025
@exyi exyi force-pushed the fix/spa-back-from-pdf branch from 64c1d2a to c5c960b Compare September 28, 2025 14:30
@tomasherceg tomasherceg merged commit 10bd843 into main Oct 24, 2025
26 of 29 checks passed
@tomasherceg tomasherceg deleted the fix/spa-back-from-pdf branch October 24, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants