What is gmail doing to my links?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

What is gmail doing to my links?

Post 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?
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: What is gmail doing to my links?

Post by vargadanis »

Can you post us such a link which is screwed up by Google?
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Re: What is gmail doing to my links?

Post 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 547 times
User avatar
vargadanis
Forum Contributor
Posts: 158
Joined: Sun Jun 01, 2008 3:48 am
Contact:

Re: What is gmail doing to my links?

Post by vargadanis »

I c...
And you use HTML emails not simple TEXT/PLAIN types right? I don't really know why it does that.
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Re: What is gmail doing to my links?

Post by LonelyProgrammer »

eh, *bump*
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

Re: What is gmail doing to my links?

Post by LonelyProgrammer »

Sorry, another bump.
It has been two months and I have no idea how to solve it...
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: What is gmail doing to my links?

Post by Benjamin »

Are both requests coming from the same IP?
Post Reply