When a page is loaded, I want to see if a referrer is present in the url.
This is part of an invitation feature. A member of my app can enter a friend’s email, and a message. An email is sent with a link back to my index page. I include the invitation creator’s id as a “ref” parameter in the url.
How do I test, when the page is loaded, for “ref” defined in the url?
Thanks for your ideas!