# Add params tto links on page load - ?domain=xyz.com

**URL:** <https://www.ruby-forum.com/t/add-params-tto-links-on-page-load-domain-xyz-com/164053>\
**Category:** Rails\
**Created:** [March 27, 2009, 9:51am UTC](https://www.ruby-forum.com/t/add-params-tto-links-on-page-load-domain-xyz-com/164053 "2009-03-27T09:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgiorno](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Post date:** [March 27, 2009, 9:51am UTC](https://www.ruby-forum.com/t/add-params-tto-links-on-page-load-domain-xyz-com/164053/1 "2009-03-27T09:51:01Z")

</div>

I’m working on testing an app locally that will be serving multiple  
domains. We’ve currently set up a mechanism for testing this  
?[domain=xyz.com](http://domain=xyz.com), but this param isn’t carried over when clicking on  
links throughout the site. Is there anyway to globally change the way  
rails render’s links to add this param to all links?

Thanks in advance for any help!
