Fixed an issue where users could not be properly redirected