There is a particular page in my app which can be accessed from the app and from outside the app.
To clear things up more, let’s say my app has the pages A, B and C.
Through the app to get to page C the user has to go through A and B. In this case the back button C will take the user back to B. It is also possible for a user to open page C through other means (like clicking a link). In this case, the back button in page C should close the page C and take the user back to whatever they were doing last.
How do I add a back button for the second scenario. A back button when the app doesn’t have other pages to go back to.