Skip to content

Implement @sailkit/lighthouse 404 recovery#7

Open
joshribakoff wants to merge 2 commits intomainfrom
lighthouse-404
Open

Implement @sailkit/lighthouse 404 recovery#7
joshribakoff wants to merge 2 commits intomainfrom
lighthouse-404

Conversation

@joshribakoff
Copy link
Owner

Summary

  • Implements fuzzy matching and auto-redirect for 404 pages
  • Multiple matching strategies: Levenshtein, exact slug, token overlap
  • Drop-in NotFound.astro component for Astro sites

🤖 Generated with Claude Code

joshribakoff and others added 2 commits December 14, 2025 21:53
Fuzzy matching and auto-redirect for 404 pages.

Features:
- Levenshtein distance-based similarity matching
- Exact slug matcher for content that moved sections
- Token overlap matcher for partial matches
- Composite matcher combining multiple strategies
- findMatches() and shouldAutoRedirect() functions
- Drop-in NotFound.astro component for Astro sites
- Default CSS styling with CSS variables for theming

Matching behavior:
- Prioritizes exact slug matches (content moved to different section)
- Falls back to Levenshtein + token overlap
- Auto-redirects on single match or high-confidence clear winner
- Shows suggestions list when multiple good matches exist

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant