Ionic Back

If I press back button in mobile, my app want to show home page. how to do that?

Can You please explain in more detail what is the issue?
Also maybe You will find the answer in the Ionic Docs about the back button