[wp-meta] [Making WordPress.org] #4150: canonical on homepage
Making WordPress.org
noreply at wordpress.org
Wed Feb 6 01:03:04 UTC 2019
#4150: canonical on homepage
-----------------------------+---------------------
Reporter: joostdevalk | Owner: (none)
Type: defect | Status: closed
Priority: highest omg bbq | Milestone:
Component: General | Resolution: fixed
Keywords: |
-----------------------------+---------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => fixed
Comment:
Replying to [comment:2 Otto42]:
> WordPress itself doesn't do canonical for front-page's, so, there's no
code in there to do that.
It does when a front page is set as such in Reading Settings.
Interestingly enough, Rosetta sites already did have a proper canonical
URL on home page, as seen on https://ru.wordpress.org/. The difference was
that they actually have an empty "Home" page assigned as a static front
page in Reading Settings. The meta tag is then printed by
`rel_canonical()` function from core.
This page was missing on the main WordPress.org site. I've created one for
the sake of consistency, and now `rel_canonical()` does its job as
expected, no code changes needed :)
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/4150#comment:6>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list