Prerequisites
Describe the Feature Request
Currently, every IonTabButton press is added to the history stack. Repeatedly switching between tabs results in back navigation replaying every tab switch:
Practice → Patterns → Progress → Patterns → Progress
Back:
Progress ← Patterns ← Progress ← Patterns ← Practice
Would it be possible to support a configurable tab history mode (e.g. all, unique, or isolated) so developers can achieve navigation behavior similar to apps like Reddit, Instagram, or YouTube?
Ideally, repeated visits to the same tab would not create duplicate history entries.
Describe the Use Case
IonTabs currently adds every tab switch to the history stack. Repeatedly switching between tabs causes the Android back button to replay every tab selection, leading to a ping-pong effect between tabs. This can feel unintuitive for apps that prefer Reddit/Instagram-style navigation.
Describe Preferred Solution
Add an optional tab history mode that prevents duplicate tab visits from being added to the history stack. For example, after:
Practice → Patterns → Progress → Patterns → Progress
pressing Back could navigate:
Progress ← Patterns ← Practice
instead of replaying every tab switch.
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
Prerequisites
Describe the Feature Request
Currently, every IonTabButton press is added to the history stack. Repeatedly switching between tabs results in back navigation replaying every tab switch:
Practice → Patterns → Progress → Patterns → Progress
Back:
Progress ← Patterns ← Progress ← Patterns ← Practice
Would it be possible to support a configurable tab history mode (e.g. all, unique, or isolated) so developers can achieve navigation behavior similar to apps like Reddit, Instagram, or YouTube?
Ideally, repeated visits to the same tab would not create duplicate history entries.
Describe the Use Case
IonTabscurrently adds every tab switch to the history stack. Repeatedly switching between tabs causes the Android back button to replay every tab selection, leading to a ping-pong effect between tabs. This can feel unintuitive for apps that prefer Reddit/Instagram-style navigation.Describe Preferred Solution
Add an optional tab history mode that prevents duplicate tab visits from being added to the history stack. For example, after:
Practice → Patterns → Progress → Patterns → Progresspressing Back could navigate:
Progress ← Patterns ← Practiceinstead of replaying every tab switch.
Describe Alternatives
No response
Related Code
No response
Additional Information
No response