#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)
Change History (6)
#1
@
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 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:
- https://wordpress.org/plugins/the-social/ (closed, 404)
- https://wordpress.org/plugins/social-media/ (not yet visible to public, 404)
- https://wordpress.org/plugins/social-media-data/ (404)
- https://wordpress.org/plugins/tags/
- https://wordpress.org/plugins/search/ (this one is tricky. with this patch it redirects to searching for "search" which seems like the right behavior for any existing links out in the world)
#2
@
7 years ago
- Owner set to Otto42
- Status changed from new to accepted
Seems to work correctly for both admin and non-admin users.
This ticket was mentioned in Slack in #meta by tellyworth. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
Add 404 redirect to search