So I’m writing a little function that should be easy, basically it should look at the query parameter in the URL string and show content if the query string has a value… it generates the correct URL with the query string (in this case, it dynamically assigns a referrer id to a facebook post, then when a user clicks on the post it shows some additional content). But it doesn’t show the content… what am I missing?
<note>hardcoding referrer for now</note>
<Set referrer>1234</Set>
<Set sharer><Url current />/?referrer=<Get name=referrer /></Set>
<a href="https://www.facebook.com/sharer.php?u={Get name=sharer /}">SHARE ON FACEBOOK</a>
All of the above works. When the facebook post is clicked on it passes the correct page URL with the query string /?referrer=1234.
The code below should read the query string and then show the content on the page given the referrer has a value.
<Set refid><Url query=referrer /></Set>
<Get name=refid />
<If check="{Get name=refid /}">
<h2>Agent Spotlight</h2>
</If>