Describe the bug
After editing the disposition of a shift, the dispostion edit view is still in browser history. When navigating back to the event overview by using the back navigation twice, the local state, i.e., the changed disposition, is reverted back. After reloading the page server-side-state updates the local state accordingly
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://shifts.myhpi.de/events/181-hutmensch/' (or equivalent event overview)
- Click on 'Disposition'
- Change anything (for example decline a user)
- Save the Changes.
- Navigate back using browser back button twice (you should arrive back on the overview)
- The disposition change is reverted in displayed UIExpected behavior
After editing a disposition, event or similar the edit-view gets removed from the browser navigation history.
- Reload the page (should update back to server-side-state
Expected Behavior
The "Edit"-view should be removed from the browser navigation history.
Environment
Fedora Linux 44, Firefox
Describe the bug
After editing the disposition of a shift, the dispostion edit view is still in browser history. When navigating back to the event overview by using the back navigation twice, the local state, i.e., the changed disposition, is reverted back. After reloading the page server-side-state updates the local state accordingly
To Reproduce
Steps to reproduce the behavior:
After editing a disposition, event or similar the edit-view gets removed from the browser navigation history.
Expected Behavior
The "Edit"-view should be removed from the browser navigation history.
Environment
Fedora Linux 44, Firefox