# How to show back button when access page from ion-list in sidemenu

**URL:** <https://forum.ionicframework.com/t/how-to-show-back-button-when-access-page-from-ion-list-in-sidemenu/50385>\
**Category:** ionic-v1\
**Created:** [April 26, 2016, 5:42am UTC](https://forum.ionicframework.com/t/how-to-show-back-button-when-access-page-from-ion-list-in-sidemenu/50385 "2016-04-26T05:42:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakobosagung](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yakobosagung/32/99492_2.png) [@yakobosagung](https://forum.ionicframework.com/u/yakobosagung)\
**Post date:** [April 26, 2016, 5:42am UTC](https://forum.ionicframework.com/t/how-to-show-back-button-when-access-page-from-ion-list-in-sidemenu/50385/1 "2016-04-26T05:42:23Z")

</div>

I’m so confuse. How to show back button when i access login page from sidemenu, and back to playlist?When login page open,always show icon menu,and not back button.

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/3/7/375ff1b84148d2387a0e5ef7a2cb55fd055f28bf.PNG)  
 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/e/1/e14c158377d48828f5fe5212a9adb27cbfcc554f.PNG)

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [April 26, 2016, 5:52am UTC](https://forum.ionicframework.com/t/how-to-show-back-button-when-access-page-from-ion-list-in-sidemenu/50385/2 "2016-04-26T05:52:25Z")

</div>

okay this is how navigation and sidemenu in ionic works:

1. Think of the sidemenu as a global thing
2. By default every item in the sidemenu should change the context --\> if you change the context, you need no backbutton, because you can simply go again over the sidemenu to another context
3. A Backbutton is used, if you are navigating on a specific path deeper and depper. Like from a list view to a detail page
4. And Login and Playlist has nothing to do with each others.

And now to the programming things.

If you have the “menu-close” directive on your list-items in the sidemenu --\> it will reset history, close the menu and disable the animation for the next state-transition by click.

But maybe you should consider ui changes to not confuse your users.

If you want to access the login from everywhere you could add a popover to the headerbar. Or you add a button to the headerbar and then the login form opens in a modal or popup.

But only keep in mind: Sidemenu items should change the context. You are not navigating deeper. So there is per default not back-button.

You could remove the menu-close directive and add something own. But if you only remove it, you will get some navigation problems:

Think about when every change of the context in the sidemenu does not reset history --\> you could create navigation circles like “Login --\> Playlist --\> Playlist item --\> Login --\> Playlist”. 😉

---

<div class="post-metadata">

**Author:** ![yakobosagung](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/yakobosagung/32/99492_2.png) [@yakobosagung](https://forum.ionicframework.com/u/yakobosagung)\
**Post date:** [April 26, 2016, 6:00am UTC](https://forum.ionicframework.com/t/how-to-show-back-button-when-access-page-from-ion-list-in-sidemenu/50385/3 "2016-04-26T06:00:24Z")

</div>

thank you sir. i will think about it.
