[wp-meta] [Making WordPress.org] #1631: x-default hreflang tag is wrong
Making WordPress.org
noreply at wordpress.org
Sun Mar 13 21:28:28 UTC 2016
#1631: x-default hreflang tag is wrong
-------------------------+---------------------
Reporter: joostdevalk | Owner:
Type: defect | Status: closed
Priority: normal | Milestone:
Component: General | Resolution: fixed
Keywords: |
-------------------------+---------------------
Changes (by ocean90):
* status: new => closed
* resolution: => fixed
Old description:
> The `hreflang="x-default"` line of the hreflang lines on, for instance,
> plugin pages, now links to the current page. So:
>
> * if you're on `https://af.wordpress.org/plugins/wordpress-seo/`;
> * the `x-default` is `https://af.wordpress.org/plugins/wordpress-seo/`.
> * It should at least be `https://wordpress.org/plugins/wordpress-seo/`.
>
> Even better would be to leave it out completely. `x-default` is for
> language redirectors, which we currently don't have.
>
> > “The x-default hreflang value signals to our algorithms that such a
> page doesn’t target a specific language or locale.”
> [https://webmasters.googleblog.com/2013/04/x-default-hreflang-for-
> international-pages.html Source]
New description:
Related: #990
The `hreflang="x-default"` line of the hreflang lines on, for instance,
plugin pages, now links to the current page. So:
* if you're on `https://af.wordpress.org/plugins/wordpress-seo/`;
* the `x-default` is `https://af.wordpress.org/plugins/wordpress-seo/`.
* It should at least be `https://wordpress.org/plugins/wordpress-seo/`.
Even better would be to leave it out completely. `x-default` is for
language redirectors, which we currently don't have.
> “The x-default hreflang value signals to our algorithms that such a page
doesn’t target a specific language or locale.”
[https://webmasters.googleblog.com/2013/04/x-default-hreflang-for-
international-pages.html Source]
--
Comment:
Fixed in [dotorg11720] (replace x-default with en) and [dotorg11721 (don't
cache the en_US entry because it uses`$_SERVER['HTTP_HOST']`).
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1631#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list