Changing rootPage from page breaks sideMenu

I’m having problems with navigation. I have three pages to navigate to from the side menu. On page one I have a button that allows me to navigate to page 2. When I make the change from the button( (I am on page two then) and try to navigate to page one from the side menu this does not work, however if I navigate to any other page, there is no problem. I’m starting to use Ionic and it’s probably a conceptual error about the navigation stack, but I can’t solve it.

Some images of my code:




Hello sir,
I have more than 2 years of experience with ionic framework, Having 4 years of development expereince, I can help you out, Please contact me over s¥ýp€,