feat: remove a particular view from the history
See original GitHub issueType: <span ionic-type>feat</span>
Platform: <span ionic-platform>mobile</span> <span ionic-webview>webview</span>
<span ionic-description>Say i have traversed 3 views and i have a history that looks like this: A -> B -> C
and i am now on C
:
Is there currently a way that i can remove B
completely from the history - including the cached elements and scope? This would mean going back goes to A
The goBack([amount])
method works perfectly in some situations, but it doesn’t work with iOS swipe to go back. A better solution would be a method to remove a specific item in the current history.
</span>
<span is-issue-template></span>
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:41 (2 by maintainers)
Top Results From Across the Web
How to Delete Browsing History in Google Chrome - YouTube
Click to place a check mark next to any items you want to delete and get rid of over your specified time frame....
Read more >Manage & delete your Search history - Android - Google Support
A specific activity: Next to the activity, tap Delete activity item . Control your Search history. Tip: To add more security, you can...
Read more >How to Use Safari's Private Browsing Mode and Delete Your ...
1. Open Safari on your iPhone or iPad, tap the Pages icon (consisting of two squares) to bring up the open tabs view,...
Read more >Delete cookies in Microsoft Edge
Learn how to delete cookies in Microsoft Edge. Clear all cookies, cookies from a specific site, or every time you close the browser....
Read more >git rebase | Atlassian Git Tutorial
This lets you clean up history by removing, splitting, and altering an existing series of commits. It's like Git commit --amend on steroids....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This will be a part of tonight’s nightly build. No further +1s needed 👍 . Thanks for contribution everyone!
Thanks, Dan
If you want to prevent the user to nav back to the last state you can always use $ionicHistory.goBack() before navigating to an other state.
Something like : $ionicHistory.goBack(); $state.go(‘app.home’);
It is not as flexible as being able to remove a particular page though, but in my case it was enough.