fix(seo-snapshot): reverse redirect pointing at a DB-orphaned slug - #32
Merged
Conversation
Found while verifying the v3.0 deploy: seo-bot-view-guard reported the only 2 failures left (of 111) at /br/artigos/defi-gtm-checklist and its ES twin. Root cause: REDIRECTS mapped these live, DB-backed URLs to "checklist-go-to-market-defi" / "lista-verificacion-gtm-defi", slugs with ZERO matching page_translations rows (verified via direct PostgREST query). generatePublicationSnapshot correctly returns null for a nonexistent slug even with refresh=1, so the request fell through to an orphaned object left in the seo-snapshots storage bucket from before this session's fix — old lean format, no h1, no internal links. The real page (slug "defi-gtm-checklist") has complete en/br/es translations and generates perfectly once nothing redirects away from it. Reversed the two entries rather than deleting them, so the old broken URLs (possibly already indexed or bookmarked) redirect to the working page instead of dead-ending. Verified the other two REDIRECTS entries point at real, DB-backed slugs and left them untouched. deno check passes. Co-Authored-By: Claude Fable 5 <[email protected]>
✅ Deploy Preview for mangabeira ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: gogrowth-co/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while verifying today's v3.0 deploy: the only 2 of 111 URLs still failing seo-bot-view-guard were
/br/artigos/defi-gtm-checklistand its ES twin.Root cause:
REDIRECTSsent these live, DB-backed URLs to slugs with zero matchingpage_translationsrows (confirmed via direct query). The real page has complete en/br/es translations and generates perfectly on its own — the redirect was actively routing traffic away from working content to an orphaned pre-fix storage object.Reversed rather than deleted, so old bookmarks/indexed links land on the working page instead of a dead end.
deno checkpasses. Needs the standard Lovable Cloud deploy once credits are available.🤖 Generated with Claude Code