Improved search to include query and offset in the URI so that the search results can be sent by email and the back button works.