Skip to content

Remote repo page URLs replace / with - causing collisions #64

Open

Description

@nsheaps

Bug

URLs for pages on remote repos incorrectly replace / in paths with -, which:

  1. Produces wrong URLs
  2. Can cause two different files to share the same URL (collision)

Current Behavior

https://nsheaps.github.io/cept/pr-52/g/github.com/nsheaps/cept/blob/main/docs/git-content-getting-started-quick-start-md

All / in the file path portion gets replaced with -.

Expected Behavior

URLs should use the actual path, mimicking GitHub's URL structure for viewing files in a repo:

https://nsheaps.github.io/cept/pr-52/g/github.com/nsheaps/cept/blob/main/docs/git-content/getting-started/quick-start.md

Goal

A user should be able to swap the URL base path between GitHub and Cept and have it load the corresponding content. The path structure after the host/repo/blob/branch prefix should be identical.

Context

From PR #52 follow-up issues.

Activity

  1. added 2 commits that reference this issue on Mar 23, 2026
    6477979
    b5544be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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