WordPress.org

Making WordPress.org

Opened 8 months ago

Closed 8 months ago

Last modified 5 months ago

#2755 closed enhancement (fixed)

404s for Plugins should return search results

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

Description

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 8 months ago.
Add 404 redirect to search

Download all attachments as: .zip

Change History (6)

@gibrown
8 months ago

Add 404 redirect to search

#1 @gibrown
8 months 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 https://wordpress.org/plugins/tags/ 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
8 months ago

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

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

#3 @Otto42
8 months 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.


8 months ago

#5 @SergeyBiryukov
5 months ago

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