Relative links in .github/CONTRIBUTING.md resolve incorrectly on the Contributing overview tab
#200300
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Apps
Body
Relative links in
.github/CONTRIBUTING.mdbreak on the repository's "Contributing" overview tab.If
CONTRIBUTING.mdis in.github/and links to a sibling file with a relative path like./CODE_OF_CONDUCT.md, the link works in the blob view but 404s from the overview tab. That tab resolves relative paths from the repo root, not from the file's directory.Steps to reproduce (GitHub's own repo):
Expected: the overview tab resolves relative links the same way the blob view does ie relative to the file's directory.
Impact: any repo that keeps community health files in
.github/and cross-links them has broken links on this surface. The only fix is switching to absolute URLs, which breaks local editor preview (VS Code, etc.). Authors are stuck picking which surface to break.Beta Was this translation helpful? Give feedback.
All reactions