Make the mobile back button do something when there is no history (i.e. when a page is opened in a new tab).