detect-browser-language icon indicating copy to clipboard operation
detect-browser-language copied to clipboard

SEO Friendly?

Open tomyedlp opened this issue 5 years ago • 1 comments

I installed that dependency and when I search the page in Google, the page description appears in English when the page is in Spanish and the geolocation is in a Hispanic-speaking country. If the user does not have the browser set to Spanish, the page appears in English, which is fine. But it's not okay for Google bots. Any solutions?

tomyedlp avatar Sep 14 '20 18:09 tomyedlp

As far as I understand, you don't have separate routes for Spanish and English languages. So while you are switching the language according to users' preference, for google bots there is only one language.

You can use the library to redirect users to correct route so let's say your base language is English so URL => https://mysite.com, and for the spanish language, use browser detect to pick if user prefers arabic and navigate to https://mysite.com/es automatically.

barancezayirli avatar Sep 23 '20 05:09 barancezayirli