Reloading redirects to the main page