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.
ToolSEO AnalysisCopilot 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
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the SEO Analysis tool:
- Ask: "Find broken internal links on mysite.com"
- Review the report inline
- Ask Copilot to generate redirect rules or fix link references in code
- 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