Fix redirectPath for oauth2