Making WordPress.org

Opened 3 weeks ago

Closed 2 weeks ago

#8268 closed defect (bug) (fixed)

Legacy /extend/themes/{slug} URLs return 404 instead of redirecting to /themes/{slug}/

Reported by: 4thhubbard's profile 4thhubbard Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Theme Directory Keywords:
Cc:

Description

Legacy /extend/themes/{slug} URLs from the pre-2013 directory structure return 404 instead of redirecting to their current canonical paths under /themes/{slug}/.

Steps to reproduce

  1. Visit https://wordpress.org/extend/themes/p2 → returns 404.
  2. Canonical URL https://wordpress.org/themes/p2/ works.

Impact

Old blog posts and external links across the web still reference the /extend/themes/ pattern. Example: https://ma.tt/2009/05/how-p2-changed-automattic/ links to http://wordpress.org/extend/themes/p2.

Suggested fix

Add a 301 redirect for /extend/themes/(.+)/themes/$1/. Worth also checking whether /extend/plugins/(.+) has the same gap and applying the same treatment.

Change History (1)

#1 @dd32
2 weeks ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 14924:

Redirects: Redirect the legacy /extend/{plugins,themes} urls.

Props 4thhubbard.
Fixes #8268.

Note: See TracTickets for help on using tickets.