Fix broken internal links — Lovable
Broken internal links waste crawl budget, create dead ends for users, and signal poor site maintenance to Google.
Fixing this in Lovable
AI full-stack app builder (React + Vite + Supabase)
Lovable apps ship fast but skip most SEO and security basics out of the box. Paste the prompt below into your Lovable chat and the fix rolls out across the project in one pass.
Using a different tool? Pick your stack:
The prompt for Lovable
Copy and paste this into your Lovable chat exactly as-is.
Fix my Lovable app — please make these exact changes in the Lovable editor: Fix broken internal links 1. Check all internal links and fix any that return 404. 2. Use consistent URL paths — match the exact routes in your app.
Why this matters
Google uses internal links to discover and rank pages. Every broken link is wasted crawl budget and a rank-flow leak. Too many broken links and Google deprioritizes your site as "poorly maintained".
For users, a 404 from a trusted link is a trust break. They either bounce or lose faith in other links on the page.
How to use this prompt in Lovable
- 1. Open your Lovable project.
- 2. Copy the prompt above with the copy button.
- 3. Paste into the Lovable chat and send.
- 4. Review the diff, accept the changes, redeploy.
- 5. Verify the fix using the checklist below.
Common mistakes to avoid
- error_outlineFixing links in the current deploy but not adding redirects for the old paths.
- error_outlineUsing "soft 404s" — a 200 response for a "not found" page.
- error_outlineIgnoring deep-link 404s because they are "low traffic" — Google's crawl budget does not care.
How to verify the fix worked
- check_circleScreaming Frog or Sitebulb crawl — zero internal 404s in the report.
- check_circleGoogle Search Console → Crawl errors — no new 404s over the week.
- check_circleManual check on the top 10 pages — no red links.
Frequently asked questions
301 or 302 for removed pages?expand_more
Should I redirect all 404s to the homepage?expand_more
Want all 34 prompts tailored to your Lovable site?
Pantra scans your site in 10 seconds, detects the stack, and generates the exact prompts that apply — only the ones you actually need.
Scan my siteRelated Lovable prompts
Add a custom 404 page — Lovable
Stack-specific prompt to build a branded 404 page with search and key links instead of a bare error message.
SEOGenerate a sitemap.xml covering every route — Lovable
Stack-specific prompt to create /public/sitemap.xml listing all public routes, for Lovable, Cursor, Bolt, v0, Replit, Windsurf, Claude Code, and Base44.
TechnicalAdd the viewport meta tag — Lovable
Prompt to add the mobile-friendly viewport meta tag — required for Google mobile-first indexing.
TechnicalSet the lang attribute on <html> — Lovable
Prompt to add lang="en" or lang="de" to the <html> tag for accessibility and SEO.