Trying to fix redirect in unauthenticated case.