Accomodate query strings when updating URL