How to dynamically add a query string to all links in a page