Skip to content

Fix broken cross-links in documentation#44998

Closed
ThePhantom-S wants to merge 1 commit into
github:mainfrom
ThePhantom-S:patch-1
Closed

Fix broken cross-links in documentation#44998
ThePhantom-S wants to merge 1 commit into
github:mainfrom
ThePhantom-S:patch-1

Conversation

@ThePhantom-S

Copy link
Copy Markdown

Pull Request: Fix broken cross-links in documentation

Description

This PR updates internal links within CONTRIBUTING.md to use root-relative paths.

Previously, relative links (e.g., ./CODE_OF_CONDUCT.md) broke when viewed via the GitHub repository's "Contributing" overview tab. This is because that tab renders content at the root level, causing relative paths to resolve incorrectly.

By switching to root-relative paths (starting with /), these links now resolve correctly in both:

  1. The Blob view (file-specific context).
  2. The Overview tab (repository-root context).

This approach also maintains full compatibility with local editor previews (e.g., VS Code).

Changes

  • File: .github/CONTRIBUTING.md
  • Action: Updated community health file cross-links to use absolute root paths (e.g., /.github/CODE_OF_CONDUCT.md).

Verification

  • Links verified in local IDE/editor.
  • Links verified in GitHub Blob view.
  • Links verified via the repository "Contributing" overview tab.

I fixed the Code of Conduct redirection error that you had mentioned on the community.

f
@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Jun 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

This pull request contains code changes, so we will not generate a table of review links.

🤖 This comment is automatically generated.

@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey there spelunker. It looks like you've modified some files that we can't accept as contributions:

  • .github/CONTRIBUTING.md

You'll need to revert all of the files you changed that match that list using GitHub Desktop or git checkout origin/main <file name>. Once you get those files reverted, we can continue with the review process. :octocat:

The complete list of files we can't accept are:

  • .devcontainer/**
  • .github/**
  • data/reusables/rai/**
  • Dockerfile*
  • src/**
  • package*.json
  • content/actions/how-tos/security-for-github-actions/security-hardening-your-deployments/**

We also can't accept contributions to files in the content directory with frontmatter contentType: rai.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant