fix pagination urls when relative to querystring

When you have an url relative to the querystring  (eg "?order=price"), the url builder fails and will use a second "?" for the next query parameter. This will fix that problem