Fixed bug in the routers where the order of URL parameters (mode, query,
and page) were out of order and so sometimes the page number was being
passed as a query ("q=+0").