Skip to content

v0.8.0 — Fuzzy Redirects

Choose a tag to compare

@jdevalk jdevalk released this 13 Apr 13:44
· 6 commits to main since this release

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/map route), 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-suggester for later audit.

  • Exported rankCandidates() and scoreSlugMatch() from src/fuzzy.ts — reusable for the upcoming automatic-on-404 flow once the notfound hook lands upstream.

Companion upstream work

  • emdash-cms/emdash#525 — proposed notfound hook 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