Opened 6 years ago
Closed 6 years ago
#3947 closed defect (bug) (fixed)
hreflang tag values should be derived from the canonical URL, not the request URL
Reported by: | jonoaldersonwp | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | General | Keywords: | |
Cc: |
Description
Many of our pages use hreflang tags to indicate localised/translated variants. That value that they output is currently based on the request URL.
E.g., https://wordpress.org/download/?test=1234
outputs alternate URLs like https://bs.wordpress.org/download/?test=1234
.
This is incorrect; the alternate values should be derived fom the requested page's canonical URL.
E.g., https://wordpress.org/download/?test=1234
should output alternate URLs like https://bs.wordpress.org/download/
.
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 7898: