Browser desyncs state on any browser navigation #287
Labels
bug
Something isn't working as intended
help wanted
Extra attention is needed
low priority
Tasks that we don't have the resources or shouldn't tackle in priority
Describe the bug
Using the back or forward navigation button in the browser will desync the state.
If you want to go back, the history gets sent 2 steps back.
If you want to go forward, you get sent back.
To Reproduce
Steps to reproduce the bug:
Expected behavior
The back button will only pop history once.
The forward button will either do nothing or navigate the user to the requested resource.
Information about your device (please complete the following information):
Additional context
Discovered while testing #277. Apparently the current setup is that on any popstate the browser will navigate back, but this also triggers a popstate from the navigate back function. (Thus making the browser think it's gone back another time.)
Popstate also triggers on any change in the link, even when it's supposed to go forward. Thus activating the navigate back function.
The text was updated successfully, but these errors were encountered: