[RESOLVED] Overriding PHP redirect to welcome page when request is from newsletter
I've created a website in which on first access, even if you type or click on a link to a URL which is not the home page, you're redirected to the typical welcome page with a big image. Then a cookie is created, and as long as it doesn't expire, you will access any other page in the web without this redirect.
The problem comes when we send a newsletter. I've stumbled across a stupid issue I didn't foresee. The links in the newsletter to specific pages didn't work as expected in most cases obviously.
The first, and only, workaround I've figured out so far is to add a variable to the newsletter links in order to override the redirection.
However I don't know what's generally done in this case. Do I use some static key? How do websites generally do in cases like this? or what would you think would be a good way?
Of course, you could ditch the whole redirect issue and let people surf to wherever they want to surf. E.g.: what happens if Google points to an internal page of your site for some search result, a user clicks their link, they end up getting redirected to a banner page that has nothing to do with what they were searching for, and then leave your site?
Anyway, if you're going to stick with that behavior, my first thought was the query string variable in the newsletter link, too.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)