-
-
Notifications
You must be signed in to change notification settings - Fork 999
Open
Labels
bug reportBug reports that are not yet verifiedBug reports that are not yet verified
Description
Describe the bug
When navigating to a different page and then going back, page should not refresh, and scroll position should restore. It currently doesn't due to bfcache not being used because of an open WebSocket connection. See https://web.dev/articles/bfcache#close-open-connections
I think fix should be fairly simple: call wsClient.dispose() on pagehide event, and create a new client on pageshow event.
Steps to reproduce
- Go to Stash
- Scroll down
- Go to a different page, e.g. google.com
- Go back with browser button
- Page is refreshed, and scroll position is reset
Expected behaviour
Page should be retrieved from bfcache.
Screenshots or additional context
No response
Stash version
v0.30.1
Device details
Chrome on Windows
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug reportBug reports that are not yet verifiedBug reports that are not yet verified
Type
Projects
Status
To triage