Fix redirection URL in production mode