WordPress.org

Making WordPress.org

Opened 7 weeks ago

Last modified 7 weeks ago

#5531 new defect

Theme Directory: Unexpected redirect for non-existing themes

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

Description

If I go to:
https://wordpress.org/themes/non-existing/
it currently redirects to:
https://wordpress.org/themes/themes/non-existing/

Note the duplicate /themes part.

Change History (2)

#1 @SergeyBiryukov
7 weeks ago

Plugins have a similar redirect, but that one makes more sense:
https://wordpress.org/plugins/non-existing/
redirects to:
https://wordpress.org/plugins/search/non-existing/

So apparently this would be the correct destination for non-existing themes as well:
https://wordpress.org/themes/search/non-existing/

Last edited 7 weeks ago by SergeyBiryukov (previous) (diff)

#2 @dd32
7 weeks ago

In 10497:

Redirects: Trim off the sub directory path prefix before attempting to handle malformed urls.

See #5528, #5531.

Note: See TracTickets for help on using tickets.