MODE-2340: Handle redirection after logout