fixing url.format prfers search over query issue