-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove x-default
tag
#96
Comments
Simple fix is this: 'href' => $this->page->url(kirby()->defaultLanguage()->code()) in meta.php |
@delphinas That is also how we do it, don't remove it. |
I'll have to dig deeper on what is the correct approach, but unfortunately don't have the time right now. Sorry. |
The Maybe Kirbys link field can be used to pick the a page that should be used as default with a fallback to the default locale version of the page when not set. |
I can’t judge how bad the problem is for Search Engine ranking. But tools like ahrefs.com will list it as an issue if x-default links do not point to the same Url for each language version. Maybe a minor release is okay where the default locale Url is used for x-default href attribute? Like this the behaviour is correct. Creating a proper interface and/or option for it can still happen in 2.0.0? Can create a PR if you want. Heres a preview of the change |
This was my intention behind the original inclusion of the However I'm not sure if this is actual the correct behaviour. As Google specifies it, it's meant to show a general language picker page, like this: https://www.apple.com/choose-country-region/ Most popular sites that have lots of language don't specify |
Not sure it always has to be a language neutral page, it can also be the language version of a page that is most appropriate for visitors whose locale does not mach any of the locales offert on a page. https://developers.google.com/search/blog/2013/04/x-default-hreflang-for-international-pages
Looking at the example code from that link, it should be fine to point the default locale. Although this might not be what you want to do in every case. The information posted there is from 2013 though… so maybe this has changed in the past. |
In these Tell Google about localized versions of your page it says: "fallback page for unmatched languages, especially on language/country selectors or auto-redirecting home pages." In multilanguage discussion, @bnomei mentiones to use use 'index' to get to the language-neutral auto-redirecting pages. So I suggest to use: This is included in #128 |
The text was updated successfully, but these errors were encountered: