with SAML of google:
https://accounts.google.com/o/saml2/idp?idpid=[your_id]
the method url.format(uri) just ignore completely query object, if search exists in object uri, and returns the same url as sso_login_url
I've to parse the search field, and append to query object, then remove search in uri
the url.format works as intended in nodejs as cited in doc
search will be used in place of query.
this special case should be handled in saml2's code.