fix(structure): don't replace url when navigating back to list after document deletion #6953
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Before the fix in #6923 got merged, when deleting a document, you could always hit the back button to get back to the newly deleted document, and there you’d be given a way to undo/restore it.
Now after this fix, if you delete a document you can no longer hit the back button to recover a deleted document if you realise you made a mistake (unless you remember the id, which you probably don’t). This is not great, and we want to leave a history entry in this case so you navigate back.
What to review
Deleting a document should allow you to navigate back to restore it.
Notes for release
n/a since the changes in #6923 has not been released yet