added query method for url service to generate url with current query parameters