Skip to content

Relative links in README tab resolve to gittensor.io instead of GitHub #115

@tmimmanuel

Description

@tmimmanuel

Description

Relative links rendered in the README tab on the repository page incorrectly resolve to localhost paths instead of pointing to the corresponding GitHub URLs.

Steps to Reproduce

  1. Open https://gittensor.io/miners/repository?name=bitcoin%2Fbitcoin
  2. Navigate to the Readme tab
  3. Click on any relative link in the rendered README (e.g. CONTRIBUTING.md, doc/developer-notes.md, or doc)

Expected Behavior

Relative links should resolve to the source GitHub repository:

  • CONTRIBUTING.mdhttps://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md
  • doc/developer-notes.mdhttps://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md
  • dochttps://github.com/bitcoin/bitcoin/blob/master/doc

Actual Behavior

Relative links resolve to gittensor.io paths:

  • CONTRIBUTING.mdhttps://gittensor.io/miners/CONTRIBUTING.md
  • doc/developer-notes.mdhttps://gittensor.io/miners/doc/developer-notes.md
  • dochttps://gittensor.io/doc

Environment

  • Browser: Chrome
  • OS: Linux

Additional Context

This affects all relative links in README content. Absolute links (https://...) and anchor links (#...) are unaffected. The fix should rewrite relative hrefs to prefix them with the GitHub blob URL for the repository.

Screencast.from.2026-03-20.20-04-26.webm

This also happens in Contributing tab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions