replace any query string on the request to newscred with params passed
into the middleware