Improved page routing when viewing as a guest and when logging in/out.