v0.8.0 — Fuzzy Redirects
Added
-
Fuzzy Redirects admin tool. New admin page at SEO → Fuzzy Redirects that turns the core 404 log into a prioritized redirect work queue. For every logged 404, the tool fetches the current list of published URLs (via the plugin's own
schema/maproute), ranks live URLs against the missing path by path similarity, and lets you one-click create a 301 redirect for the chosen target.Scoring combines three signals:
- Levenshtein distance on the full normalized path (catches typos in inbound links).
- Token overlap (Jaccard index) on path segments (catches reordering and punctuation drift).
- Tokenized last-segment match bonus (catches slugs that survived a prefix rewrite like
/blog/old/hello→/posts/hello).
A minimum-score slider tunes aggressiveness. Created redirects are grouped under
seo-fuzzy-suggesterfor later audit. -
Exported
rankCandidates()andscoreSlugMatch()fromsrc/fuzzy.ts— reusable for the upcoming automatic-on-404 flow once thenotfoundhook lands upstream.
Companion upstream work
- emdash-cms/emdash#525 — proposed
notfoundhook that will let this tool run automatically on every 404 instead of requiring manual admin review. Same matching logic, automatic trigger.
Full Changelog: v0.7.0...v0.8.0