[Auth] fixes redirect location if a basepath is used