This is probably not the case, but is it possible that Quora is intentionally stripping the referer header? Duck Duck Go does just this in the interest of user privacy: why should site X know where I came from and what I was searching? https://duckduckgo.com/privacy.html Seems unlikely in this case but possible. Incidentally, it seems that encrypted.google.com does this but not regular google. EDIT: This happens for…
How not to do URL redirects (… the way Quora does)
21–30 of 56 posts
Re: How not to do URL redirects (… the way Quora does)
#22Says who? Google and their `/url`? Facebook and their `l.php`?
Re: How not to do URL redirects (… the way Quora does)
#23Earlier quoted context omitted.
Not sure if I understood this correctly. If Quora chose to send a Location: some-url and Status: 302, it would have definitely worked as expected.
So what should an app do if it wants ro track all outbound links and send the real url as referer to the outbound link
Another option would be to link to the real URL, and make a synchronous XHR from JavaScript (to your server) when the link is clicked.
Re: How not to do URL redirects (… the way Quora does)
#24I hate to crash the party, but why is the premise that "overriding links is absolutely okay" taken for granted? Says who? Google and their `/url`? Facebook and their `l.php`?
Re: How not to do URL redirects (… the way Quora does)
#25I hate to crash the party, but why is the premise that "overriding links is absolutely okay" taken for granted? Says who? Google and their `/url`? Facebook and their `l.php`?
Tracking helps you build great analytics. I, as a developer, would have otherwise no idea of what's happening in my app.
Re: How not to do URL redirects (… the way Quora does)
#26This is probably not the case, but is it possible that Quora is intentionally stripping the referer header? Duck Duck Go does just this in the interest of user privacy: why should site X know where I came from and what I was searching? https://duckduckgo.com/privacy.html Seems unlikely in this case but possible. Incidentally, it seems that encrypted.google.com does this but not regular google. EDIT: This happens for…
The User-Agent generates the Referrer header, not the site. Also, encrypted.google.com doesn't do it, the HTTPS standard says that browsers shouldn't send referrer headers to sites not in the same domain or not with https.
Re: How not to do URL redirects (… the way Quora does)
#27Re: How not to do URL redirects (… the way Quora does)
#28Has anyone asked on Quora, why Quora does this?
Re: How not to do URL redirects (… the way Quora does)
#29Re: How not to do URL redirects (… the way Quora does)
#30It's most likely done intentionally to protect against leaking the clicker's identity. See the issue Facebook had back then: http://www.benedelman.org/news/052010-1.html