Fixed redirect_url() for login and logout