Navigation Issue in Side Menu Starter Project


#1

I am using the latest version of Ionic (v1.0.1) to create a sidemenu starter project. Unfortunately I found an annoying issue in this “standard” template.

  • Create a sidemenu starter project

    $ ionic start myApp sidemenu

    If you don’t want to do this, here is a plunker version of sidemenu seed project. Issue is also actual here. http://goo.gl/kLQMYl

  • Run this project. You will see Playlists page by default. Please don’t do anything… just open side menu by swiping.

  • Tap on Playlists from side menu. (I know Playlists was opened already) Side menu disappears and Playlists page will appear again.

  • Tap on any item, for example, Dubstep.

  • You will be redirected to single playlist page. But you won’t see Back button in navigation bar, as if navigation history was cleared. In this case, Back button should appear because new page is pushed to navigation stack.

Navigation system and back button works well when Playlists page is opened only once via side menu. Issue happens when you access this page twice. (continuously)

I cannot actually believe this standard / well-known seed project includes such a stupid issue. And it’s actually killing me.

Anyone who loves Ionic, please help me.

FYI: I don’t see this issue in older versions of Ionic. (v1.0.0-beta.14)


#2

I have the same issue, and just startet a new project from scratch based on the ionic-starter-sidemen project on github. The issue is still present. I´ll try to downgrade ionic.


#3

Downgrading to ionic 1.0.0 and using ui-sref=“state” instead of href=“url” fixes this issue


#4

I raised this issue on Ionic issues page from GitHub too. There goes several answers.


#5

See also: https://github.com/driftyco/ionic/issues/4132

See: http://plnkr.co/edit/pGwucVrTBDxSvw6z092h?p=preview

And: https://github.com/driftyco/ionic-starter-sidemenu/pull/11