index.js
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;
}
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;
}
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 ; }
If a gateway query parameter is added, remove it.
If a gateway query parameter is added remove it .