fixes #6740 better redirection after logout