WordPress / wporg-theme-directory

12 stars 6 forks source link

Canonical URLs should reflect the paginated state #145

Closed jonoalderson closed 2 weeks ago

jonoalderson commented 3 weeks ago

On requests to paginated views of the directory, such as https://wordpress.org/themes/page/2/, the canonical URL is incorrect, as it omits the pagination state.

E.g., on https://wordpress.org/themes/browse/community/page/5/, the canonical URL is https://wordpress.org/themes/browse/community/, but it should be https://wordpress.org/themes/browse/community/page/5/.

The behaviour should be altered to always include the pagination state when present.

jonoalderson commented 2 weeks ago

Woohoo! Thanks!