how to append query string to url