Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2755 closed enhancement (fixed)

404s for Plugins should return search results

Reported by: gibrown's profile gibrown Owned by: otto42's profile Otto42
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords: has-patch dev-feedback


When a user lands on a plugin that is non-existent (could have been removed, or it could have never existed) we should turn the slug in the url into a search and try and get the user headed in the right direction.

Attachments (1)

2755.patch (1.2 KB) - added by gibrown 7 years ago.
Add 404 redirect to search

Download all attachments as: .zip

Change History (6)

7 years ago

Add 404 redirect to search

#1 @gibrown
7 years ago

  • Keywords has-patch dev-feedback added

This patch redirects 404s to search using what would be the "plugin slug" as the search term.

I also included a fix for the which was redirecting to the "search" plugin (or a 404 when logged out) rather than running a search because the search term was empty.

Some examples I used for testing:

#2 @Otto42
7 years ago

  • Owner set to Otto42
  • Status changed from new to accepted

Seems to work correctly for both admin and non-admin users.

#3 @Otto42
7 years ago

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

In 5461:

Plugin Directory: Redirect 404s to plugin search using the slug as the search term. Fixes #2755. Props @gibrown

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

7 years ago

#5 @SergeyBiryukov
7 years ago

  • Milestone changed from Plugin Directory v3 - Future to Plugin Directory v3.0
Note: See TracTickets for help on using tickets.