Fixed bug regarding routing and the query string.