Fix issue where page reloads itself when hitting the back button from another site