Is custom code the only way to pass dynamic URL params (e.g., the page name) on a button click?
I have a website where all the buttons are Link Blocks, and I don’t really want to go through all of them and replace them with custom code…but as far as I can tell, there’s no way of passing a dynamic param through the Link Block settings
Depends on what you mean by dynamic param, but if e.g. you’re doing some kind of affiliate tracking or CRO tracking then yes Javascript will be the easiest way to append the querystring to those links.
If it’s from your own site, the easiest way is a site-wide JS that tracks the last page visited in sessionStorage. Then when someone hits the booking page you know where they came from.