Redirections are not correctly computed when the error or success urls already contain some query parameters, like the access token. We now use a function added in portal module that correctly computed the redirection using standard werkzeug methods.