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
Ionic Back Button Not appearing if clicked on a link same as current route. #17445
I have pages like this -
Home Page
Order List Page
Order Detail Page
If i go from my orders list page to Order detail page by clicking an order it shows back button in order detail page. Thats expected behavior. Now, if i am in order list page and from side menu i again clicked on order list page(/myorders), after that when i click on an order, i am navigated to order detail page but ion back button is not appearing in the order detail page now.
Expected behavior:
Ion back button should appear in the order detail page.
Steps to reproduce:
Above pasted code should be sufficient.
You'll need to explicitly include the back button on every page that you want it to show up on. Let me know if you are still running into issues after trying that. Thanks!
I did include the in the page. And then somewhere i read about the new back button that is smart enough to know when to show the button or not based on location history. But if router direction is root - a.k.a. [routerDirection]="'root'" Then if we click the same link where we are right now, after that whatever page we navigateForward to , it doesnt show the back button in that next page, while it should have.
I'm having the same issue. I have a list of items that all have an href. I click on an item, navigate to the page, then hit the back button in the UI to go back to the list. If I click on the same item again the animation comes in from the left instead of the right and the back button is gone.
I got my back button to start showing again by ditching the href attribute and using routerLink and routerDirection="forward" (in this case I was going forwards and then backwards). This no longer removes my back button when revisiting a page.
Thanks for the issue! This issue is being closed due to the lack of a reply. 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
liamdebeasi commentedon Feb 15, 2019
Hi there,
As of Ionic 4, the back button is not added by default to the navigation bar. Here is a link to the list of breaking changes, along with an example of how to include the back button: https://github.com/ionic-team/ionic/blob/master/angular/BREAKING.md#back-button
You'll need to explicitly include the back button on every page that you want it to show up on. Let me know if you are still running into issues after trying that. Thanks!
arihantdaga commentedon Feb 17, 2019
I did include the in the page. And then somewhere i read about the new back button that is smart enough to know when to show the button or not based on location history. But if router direction is root - a.k.a.
[routerDirection]="'root'"Then if we click the same link where we are right now, after that whatever page we navigateForward to , it doesnt show the back button in that next page, while it should have.liamdebeasi commentedon Feb 18, 2019
Thanks for the additional info! Would you be able to provide a repository that has the code necessary to reproduce this issue?
Thanks!
juanparadox commentedon Mar 7, 2019
I'm having the same issue. I have a list of items that all have an href. I click on an item, navigate to the page, then hit the back button in the UI to go back to the list. If I click on the same item again the animation comes in from the left instead of the right and the back button is gone.
juanparadox commentedon Mar 23, 2019
I got my back button to start showing again by ditching the
hrefattribute and usingrouterLinkandrouterDirection="forward"(in this case I was going forwards and then backwards). This no longer removes my back button when revisiting a page.liamdebeasi commentedon Mar 29, 2019
Hi @juanparadox,
Are you able to provide a repository with the code required to reproduce this issue?
Thanks!
ionitron-bot commentedon Apr 28, 2019
Thanks for the issue! This issue is being closed due to the lack of a reply. 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.
Thank you for using Ionic!