Add original URLs to history #13
Labels
No Label
Browser: Chromium
Browser: Firefox
Bug Report
Completed
Documentation
Enhancement
Feature Request
Not Implemented
Packaging
Progress Tracker
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Holllo/re-nav#13
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
One unfortunate thing about using onBeforeNavigate is that the original URLs aren't recorded in the browser history. Fortunately, there is a history API that should enable adding those URLs manually.
Ideally the original URL gets added to the history so that you can use the back button to manually bypass a redirect more easily.
Although adding URLs to the history is possible, it doesn't add them to the Back button's history.
A different way I did manage to get it working was using
onCommitted
instead ofonBeforeNavigate
, however this degraded the experience a lot because now pages would start loading before being redirected, and in the worst case a page would have finished loading entirely and then get redirected.So for now I'm not gonna do this.