Best I can tell, there is zero incentive for Quora (or any other site, for that matter) to care. Their current redirect logic in no way hurts their user experience. Right now they protect their users' privacy. What benefit do they realize by providing their users' viewing history to other sites? I personally think that the referer header was never a good idea. I disable it in my browser, and appreciate sites that do…
How not to do URL redirects (… the way Quora does)
41–50 of 56 posts
Re: How not to do URL redirects (… the way Quora does)
#42Earlier quoted context omitted.
Do it client-side. Don't break the web.
Doing it client side has a couple issues. 1. you need to block the click event until you get a response from your analytics endpoint. Google suggests doing this by adding a 100ms delay: http://support.google.com/googleanalytics/bin/answer.py?hl=e... 2. you might get holes in your data for a number of reasons: the user has JS turned off; 100ms isn't long enough for the request to go through; or the user might click of…
Re: How not to do URL redirects (… the way Quora does)
#43I believe Twitter does this with URL shortener links posted in tweets.
Re: How not to do URL redirects (… the way Quora does)
#44Earlier quoted context omitted.
Sending an incorrect site referrer to a downstream website doesn't solve the identity problem! HTTP headers have existed even before all these applications came into being. One just has to abide by some of those basics.
It can be fixed through a double redirect. Basically, redirect the browser to a internal page that redirects to the original page and have that page redirect to the outbound link. For example: Say you're on this page: http://site.com/article?_uid=123 (_uid being the identity leaking query param) and clicked a link that appears to point to: http://google.com/ When a user clicks on that link, the page redirect the user…
Re: How not to do URL redirects (… the way Quora does)
#45I 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`?
Indeed, referers are useful information in some cases. For bookmarking apps like http://noteplz.com one useful thing is that along with the bookmark, they also store the referer, so you can later go back to the google search result where you found that bookmark. On the other hand, with https and url shorteners,referers are a dying breed. The situation with URL shorteners is absurdly funny now, because twitter double-…
Re: How not to do URL redirects (… the way Quora does)
#46I 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)
#47Earlier quoted context omitted.
Do it client-side. Don't break the web.
Doing it client side has a couple issues. 1. you need to block the click event until you get a response from your analytics endpoint. Google suggests doing this by adding a 100ms delay: http://support.google.com/googleanalytics/bin/answer.py?hl=e... 2. you might get holes in your data for a number of reasons: the user has JS turned off; 100ms isn't long enough for the request to go through; or the user might click of…
Re: How not to do URL redirects (… the way Quora does)
#48Earlier quoted context omitted.
Indeed, referers are useful information in some cases. For bookmarking apps like http://noteplz.com one useful thing is that along with the bookmark, they also store the referer, so you can later go back to the google search result where you found that bookmark. On the other hand, with https and url shorteners,referers are a dying breed. The situation with URL shorteners is absurdly funny now, because twitter double-…
I don't think url shorteners really hurt referrers at all. They typically use 301 or 302 redirects, which preserve the original referrer.
Re: How not to do URL redirects (… the way Quora does)
#49I 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`?
On sites where there's private information in the URLs + links to external sites, overriding the referrer is necessary in order to protect users' privacy / identity. See https://www.facebook.com/notes/facebook-engineering/protecti... for why we do this at Facebook (I work on that system).
Re: How not to do URL redirects (… the way Quora does)
#50Earlier quoted context omitted.
It can be fixed through a double redirect. Basically, redirect the browser to a internal page that redirects to the original page and have that page redirect to the outbound link. For example: Say you're on this page: http://site.com/article?_uid=123 (_uid being the identity leaking query param) and clicked a link that appears to point to: http://google.com/ When a user clicks on that link, the page redirect the user…
Isn't that exactly what Quora is doing?
The technique I described allows Quora to customize the referrer associated with an outbound link.