You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ion-back-button goes to wrong route for tabs #17278
Reacted by Andrii Bilozor, kaspaddy, Jack Thomson, seyyarkodcu, Joost van Doremalen, daniele-muheim, Timur Zurbaev, georgechr, Valter Kraemer, Bagus and 8 more
This is indeed an issue and needs to be addressed.
At the moment I am working around it by adding/removing a subscription to the tabs change event on ionic view enter/leave, saving the last known tab and navigating to it when the view enters again.
Ionic does try to enforce the selection to the first tab so you see a small flicker while this happens. This can be solved by also attaching a subscription to the tabs change through the view template and if this event fires while the 1st subscription is closed then force selection to the last known tab instead. Jeez....
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
[-]ion-back-button go to wrong route for tabs[/-][+]ion-back-button goes to wrong route for tabs[/+]georgechr commentedon Feb 6, 2019
This is indeed an issue and needs to be addressed.
At the moment I am working around it by adding/removing a subscription to the tabs change event on ionic view enter/leave, saving the last known tab and navigating to it when the view enters again.
Ionic does try to enforce the selection to the first tab so you see a small flicker while this happens. This can be solved by also attaching a subscription to the tabs change through the view template and if this event fires while the 1st subscription is closed then force selection to the last known tab instead. Jeez....
victorcarvalhosp commentedon Feb 12, 2019
Same problem here!
juanmigonzalez commentedon Feb 18, 2019
I have the same problem. Can we expect a solution in the next release?
EugeneNews commentedon Feb 21, 2019
I temporarily solved this with specific
routerLinkonion-back-button- to force opening needed tab.thenaim commentedon Mar 15, 2019
duplicate of #15216
rafalschmidt97 commentedon Mar 22, 2019
Solved by removing default route. Quite weird but it must be connected somehow with outlet maybe. Dunno 🤷♂️
JustasKuizinas commentedon Mar 31, 2019
Have same problem when using
<ion-back-button></ion-back-button>manojpatel0217 commentedon Apr 3, 2019
Thanks it work for me
liamdebeasi commentedon Apr 9, 2019
Hi everyone,
I have opened a PR that should resolve this issue: #18005
One of my colleagues will be reviewing it soon, but in the meantime if anyone would like to take a look and provide feedback, that would be great!
We appreciate your patience as we work to resolve this issue 🙂
liamdebeasi commentedon Apr 10, 2019
Hi there,
This issue has been resolved, and I have published a nightly build of Ionic with the fix. You can install it with
npm i @ionic/angular@dev.Please let me know if you are still running into any issues with this.
Thanks!
ionitron-bot commentedon May 10, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.