Page 1 of 1

What is gmail doing to my links?

Posted: Tue Jun 03, 2008 11:58 am
by LonelyProgrammer
Hi all,

I am using gmail to test my applications and notice something strange - I have coded a user verification system (the usual "Please check your inbox for an email and click the link inside to unlock your account") and when I click the link from within gmail, it will go through some strange redirection, and access the page in question (say, index.php?action=validate&id=12345) twice, ending up with error messages when actually the transaction is approved.

I am using PHPMailer, btw. YahooMail has no such problems.

Is there any reason why this is happening? Anyway to solve it?

Re: What is gmail doing to my links?

Posted: Tue Jun 03, 2008 12:39 pm
by vargadanis
Can you post us such a link which is screwed up by Google?

Re: What is gmail doing to my links?

Posted: Tue Jun 03, 2008 1:41 pm
by LonelyProgrammer
It looks like this:

http://domain.com/creditvalidate.php?tr ... 9751E1YG6S

If you cut and paste into the browser, it works.
If you click from inside gmail, it will go through a redirect before popping up the page in the new window (see attachment)
mysterious_url.png
mysterious_url.png (12.56 KiB) Viewed 548 times

Re: What is gmail doing to my links?

Posted: Tue Jun 03, 2008 1:43 pm
by vargadanis
I c...
And you use HTML emails not simple TEXT/PLAIN types right? I don't really know why it does that.

Re: What is gmail doing to my links?

Posted: Wed Jun 04, 2008 4:34 am
by LonelyProgrammer
eh, *bump*

Re: What is gmail doing to my links?

Posted: Wed Jul 16, 2008 7:55 am
by LonelyProgrammer
Sorry, another bump.
It has been two months and I have no idea how to solve it...

Re: What is gmail doing to my links?

Posted: Wed Jul 16, 2008 10:53 am
by Benjamin
Are both requests coming from the same IP?