Making WordPress.org

Opened 4 years ago

Closed 2 years ago

#5531 closed defect (bug) (fixed)

Theme Directory: Unexpected redirect for non-existing themes

Reported by: sergeybiryukov's profile 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 (3)

#1 @SergeyBiryukov
4 years 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 4 years ago by SergeyBiryukov (previous) (diff)

#2 @dd32
4 years ago

In 10497:

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

See #5528, #5531.

#3 @dufresnesteven
2 years ago

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

Closing, as this appears fixed.

Note: See TracTickets for help on using tickets.