Skip to content

[Documentation] Percent-encoded external hrefs render as broken relative links #4658

Description

@dajiaohuang

Documentation URL

Examples include:

Description

At develop commit 0750d74cd6ea734e66897876506c78ca12680676, 66 Markdown source files contain 190 link destinations whose entire URL is percent-encoded, for example:

[GitHub](https%3A%2F%2Fgithub.com%2FVisActor%2FVChart)

The deployed HTML preserves this as href="https%3A...". Browsers therefore treat it as a relative path under the current VChart page rather than an external URL. This is visible on the FAQ pages above, where clicking a reference navigates to a path such as /vchart/faq/https%3A....

The intended external URL should be emitted as a normal absolute href. A mechanical decode is not safe for the whole set: 21 of the encoded destinations point at an internal host, so those references need a public destination or an explicit decision to remove them before bulk correction.

I fetched all 4,627 open/closed issues and pull requests and searched their current titles and bodies for https%3A, percent-encoded links, and encoded URLs. The only unrelated match was #2462. The repository has no Discussions; the source history contains only the original documentation imports and no later fix. I found no current owner, linked PR, commit, or duplicate for this link-generation/content problem.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions