Fixed redirection to referrer on logout