The application does not close when I click the back button

When I start the application and do not redirect it to any page, when I click the back button, there is no problem and the application closes. but when I click on another screen and come back to the same page, the application does not close and the page I directed earlier opens

Please read this:

Tip: Screens will be closed in same sequence as they were opened.