Repository navigation
docs: fix the broken relative links in copilot-instructions.md - #46672
Open
Dhairya-007 wants to merge 1 commit into
Open
Dhairya-007 wants to merge 1 commit into
Dhairya-007 wants to merge 1 commit into
Conversation
Every relative link in `.github/copilot-instructions.md` is written as if the file sat at the repository root, but GitHub resolves relative links against the directory containing the file. `SECURITY.md` therefore points at `.github/SECURITY.md`, and the platform-instruction list at the bottom points at `.github/CLAUDE.md`, `.github/GEMINI.md`, `.github/GPT.md` and `.github/.cursor/...` - all six targets 404, including the four links that the file offers as the way to reach the sibling agent guides. The same links are correct in `AGENTS.md`, which lives at the root; this file is the copy that was never repointed. Prefix the root-level targets with `../` and make the self-reference point at the file itself.
Dhairya-007
force-pushed
the
docs/fix-copilot-instructions-links
branch
from
November 28, 2026 08:24
e34ef02 to
e0d4d14
Compare
Contributor
hainenber
requested changes
Nov 28, 2026
hainenber
left a comment
Contributor
There was a problem hiding this comment.
This change will break root-symlinked AGENTS.md
tarunchaudharydev
approved these changes
Nov 28, 2026
This branch has not been deployed
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.
SUMMARY
Every relative link in
.github/copilot-instructions.mdis written as though the file sat at the repository root, but GitHub resolves relative links against the directory containing the file. All six therefore 404:SECURITY.md(×4).github/SECURITY.mdCLAUDE.md.github/CLAUDE.mdGEMINI.md.github/GEMINI.mdGPT.md.github/GPT.md.cursor/rules/dev-standard.mdc.github/.cursor/rules/dev-standard.mdc.github/copilot-instructions.md.github/.github/copilot-instructions.mdThe same links are correct in
AGENTS.md, which does live at the root — this file is the copy whose paths were never repointed. The four at the bottom are the ones the document itself offers as the way to reach the sibling agent guides, so the broken links defeat the purpose of that section.Root-level targets get a
../prefix; the self-reference points at the file itself.TESTING INSTRUCTIONS
Resolve each target relative to the file's directory:
All six print
okon this branch; the originals all fail the same check. Rendering the file on GitHub is the other way to confirm — the links are clickable in the diff view.ADDITIONAL INFORMATION
Documentation only.
Claude Code assisted in writing this patch; I verified the link resolution locally and reviewed the change.