Skip to content

Browser back navigation creates desync local and server state after disposition edit #1840

@geromequa

Description

@geromequa

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:

  1. Go to 'https://shifts.myhpi.de/events/181-hutmensch/' (or equivalent event overview)
  2. Click on 'Disposition'
  3. Change anything (for example decline a user)
  4. Save the Changes.
  5. Navigate back using browser back button twice (you should arrive back on the overview)
  6. 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.
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions