How to Find Broken Internal Links with Copilot

Detect broken internal links in your IDE with Copilot and ToolRouter. Fix 404s without leaving your editor.

Tool
SEO Analysis icon
SEO Analysis

Copilot detects broken internal links and lets you fix them without leaving your codebase. See which files contain dead links, then update the href attributes or routing configuration directly in your editor. This is especially efficient for developers working with static site generators or component-based architectures.

Connect ToolRouter to Copilot

1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the SEO Analysis tool:

  1. Ask: "Find broken internal links on mysite.com"
  2. Review the report inline
  3. Ask Copilot to generate redirect rules or fix link references in code
  4. Verify fixes by re-scanning

Example Prompt

Try this with Copilot using the SEO Analysis tool
Find broken links on mysite.com and generate Next.js redirect rules to fix them.

Tips

  • Copilot can generate redirect config for your specific framework
  • Search your codebase for hardcoded broken URLs and fix them
  • Run as part of your pre-deploy checks

Related Workflows

Comprehensive Website AuditRun a full-spectrum website audit combining SEO analysis, performance testing, site crawling, and visual documentation in one workflow.Competitor Analysis SuiteBuild a complete competitive intelligence dossier by combining company research, SEO analysis, social media audits, and ad library searches.Local SEO OptimizationOptimize your local search presence with schema markup auditing, GEO optimization, and local search result analysis.SEO Content StrategyBuild a data-driven SEO content strategy from keyword research through SERP analysis to deep topic research for content differentiation.Link Building ResearchResearch link building opportunities by analyzing backlink profiles, finding prospects, identifying contacts, and researching their social presence.Landing Page OptimizerOptimize landing pages by auditing SEO elements, testing performance, capturing responsive screenshots, and generating new hero visuals.Competitor Content Gap AnalysisFind content gaps by comparing pages with competitors, mapping their content strategy, scoring opportunities, and validating with SERP data.Video SEOOptimize video content for search by extracting transcripts, auditing video page SEO, researching video keywords, and creating thumbnails.Website Migration AuditPrepare for website migration by crawling the current site, documenting SEO baselines, benchmarking performance, and recording DNS configuration.GEO Optimization SuiteOptimize for AI-powered search engines with GEO auditing, structured data verification, and search visibility testing.Pre-Acquisition Domain AuditAudit a domain before purchase by reviewing registration history, DNS state, web archive history, and SEO reputation.YouTube Content PipelineOptimize YouTube videos for discovery with keyword research, SEO analysis, transcript extraction, and AI thumbnails.