lazd / mdn.io

The "I'm feeling lucky" URL shortener
http://mdn.io
214 stars 9 forks source link

Forcing Google to always redirect to the English version #4

Closed simevidas closed 5 years ago

simevidas commented 11 years ago

Seems to work on my machine. Please test first!

lazd commented 11 years ago

This is a good start and fixes the issue for the majority of our users, but it's English centric. I've filed #5 for more robust language support using the Accept-Language header.

That said, I'll test/merge/deploy this, thanks for the PR!

lazd commented 10 years ago

I tried to change my default Google search results language to Spanish, hoping to get the Spanish version of the Array.forEach docs, but it showed the English version regardless.

When I search normally on an account configured for Spanish, unfortunately, the English version appears above the Spanish version. With this as the case, it seems we can't get an easy shot at localization and that this PR might make things work better for our users, but I'm still not entirely sure.

blakeembrey commented 5 years ago

It's been a while and we just changed to DuckDuckGo. Could implement the same thing in the DuckDuckGo URL if it helps people though!