I have implemented custom add-on in MM2 that is shown in the course list for each course. It brings user to the ion-slide tour page that is shown until user visits each slide. Once user see all the slides in the tour, tour controller will redirect to the add-on main page using $state.go.
In the main page ion-nav-back-button returns to the tour only if user didn't see all the slides. If he's seen everything, this controller redirects to the courses list using $state.go('site.mm_courses');
However, in the later scenario, left corner button for opening submenu turns to the back button that returns to my add-on, so user is not able to access this submenu anymore. Even if I go to the Contents, Participants, Grades..., once I go back, my add-on title is displayed in place of submenu button.
I didn't change anything in moodle core source code, so this behaviour is probably caused by my addon, but I'm not sure how to find out the problem.
Hope somebody has idea what could be the reason for such behaviour.