Make sure the original query parameters are maintained when constructing the 'next uri'