Add x-default tag to <head> for default/fallback locale #13361
Replies: 2 comments 5 replies
-
|
I didn't know this a few days ago, but I was asking myself the same question. This is not the first time someone reports odd results in Google, even here (#12238). On my side, I usually get French or English results but sometimes I get Arabic or Spanish results with no reasons... As I was saying on Discord, another thing to consider is the use of I mean I still think we should experiment with IIUC, this is something doable through a route data middleware so we don't need to override the I'll ping @delucis because he might have more information (if he's already explored this for Starlight), but I think it makes sense to experiment this for docs. But it's also possible that it's just a Google issue (on their end I mean)... I don't remember seeing that with other search engines. |
Beta Was this translation helpful? Give feedback.
-
|
This feature was added in Starlight 0.39 (thanks to Chris 🙌🏽 ) and Astro Docs has been using this version for 2 weeks. Did you see any changes yet, @wpinfusion ? We're closing stale and outdated discussion to keep only the discussions still relevant to the current project version and/or the current docs state. And so, we can't do much more in docs I think. But, keeping this one opened a little longer can be interesting to gather feedback! On my side it seems I always get French or English pages, which seems a good thing for me. But, I don't recall the keyword I used where I was sometimes getting other languages... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no
x-defaulttag in the for the documentation pages. This would define a default or fallback locale for when a suitable language could not be found by search engines.Relevant chats:
I believe this could be the reason why some people see irrelevant translations getting returned in SERP. I, for example, often see Italian and Arabic docs in my search results. My browser language is set to
en, and my location isnl.I'm suggesting adding a
x-defaultto the with the value of the English version of the page to hopefully solve this issue.Beta Was this translation helpful? Give feedback.
All reactions