Incredibly, I've been unable to find any JS code for this scenario:
If people come to http://example.com
I don't need anything to happen.
But if they come in as http://example.com/?ref=producthunt
, we need to redirect them to another page, like http://example.com/custom-landing.html
.
So sorry for the vague question but I've been Googling for hours now and no luck.