WordPress.org

Making WordPress.org

Opened 3 months ago

Last modified 5 weeks ago

#4367 new defect

Plugin Directory: Duplicate hreflang tags

Reported by: SergeyBiryukov Owned by:
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

Background: #4357

On https://wordpress.org/plugins/akismet/, some hreflang link tags are duplicated:

<link rel="alternate" href="https://de.wordpress.org/plugins/akismet/" hreflang="de-de" />
<link rel="alternate" href="https://de.wordpress.org/plugins/akismet/" hreflang="de-de" />
...
<link rel="alternate" href="https://nl.wordpress.org/plugins/akismet/" hreflang="nl-nl" />
<link rel="alternate" href="https://nl.wordpress.org/plugins/akismet/" hreflang="nl-nl" />

Probably caused by formal/informal locale variants, as in #4357.

Change History (2)

#1 @SergeyBiryukov
3 months ago

The code for outputting hreflang tags currently exists in plugin-directory/class-template.php, as well as the wporg theme. It might be a good idea to abstract some of it, but for now applying [8569] and [8571] to the Plugin Directory would probably be enough.

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.


5 weeks ago

Note: See TracTickets for help on using tickets.