docs: function stripGatewayAuthenticationParameter(aUrl) {
    if (aUrl.query && aUrl.query.useGateway) {
      delete aUrl.query.useGateway;
    }
    if (aUrl.query.nextUrl) {
      var theNextUrl = decodeURIComponent(aUrl.query.nextUrl);
      aUrl.query.nextUrl = decodeURIComponent(theNextUrl);
    }
    var theUrl = url.format(aUrl);
  
    return theUrl;
  }