Under /admin/config/search/redirect view there is an issue with the "From" exposed filter. When looking for an alias with a leading slash, there are no results returned. Removing the leading slash gives correct result.
This is misleading, as the "From" column in the search results contains leading slash.
No results returned for redirect with leading slash:
Result returned for redirect without leading slash:
The mentioned situation happens because the following SQL query is being executed on the redirect view:
SELECT "redirect"."rid" AS "rid"
FROM
{redirect} "redirect"
WHERE "redirect"."redirect_source__path" LIKE '%/testing-redirect%' ESCAPE '\\'
ORDER BY "redirect"."created" ASC
LIMIT 50 OFFSET 0
The redirect.redirect_source__path
column does not include leading slash, so looking for a redirect with leading slash gives no result. My proposal for the fix is to remove leading slash from the view results output to avoid confusion.
Review the issue, propose and implement solution.
N/A
N/A
N/A
Active
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.