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

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, 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!