rankmath / seo-by-rank-math

Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
https://rankmath.com
107 stars 52 forks source link

[Redirections]: Searching for Redirection is also showing the Trashed Redirections #153

Closed Nickbahson closed 1 year ago

Nickbahson commented 1 year ago

Describe the bug Search results are not filtered by status (all/any 'status' are included in search results so long as the search text matches).

To Reproduce Steps to reproduce the behavior:

  1. After enabling the Redirections module.
  2. Add multiple redirections and delete/trash some.
  3. Under the redirections listing, click on 'Active' status and then search for texts from the Trashed redirections; the Trashed redirections are displayed alongside the 'Active' redirections listing.
  4. Click on the 'Trashed' status, and search for any of the 'Active' redirections; the 'Active' redirects show alongside the 'Trashed' redirections listing.

Steps To Reproduce: https://i.rankmath.com/v/zzKvmu

Expected behavior Search results should respect the entries' status as well and the search URL should include the status as a query param.

Screenshots https://i.rankmath.com/v/zzKvmu

Additional context Add any other context about the problem here.