update links with query strings