Skip to content

Render links tohostedBaseUrl as internal links #2809

@aleksei-berezkin

Description

@aleksei-berezkin

Search Terms

external internal links hostedBaseUrl

Problem

When generating a link to hostedBaseUrl (that is, to self), TypeDoc generates “external” links, that is, absolute links with target="_blank", and with “external” icon.

Steps to reproduce:

  • Check out test project https://github.com/aleksei-berezkin/typedoc-test-project
  • run npm run typedoc to generate docs
  • run npm run serve
  • Open the link to localhost in the browser
  • Check the “Test link” in README — it's rendered as an external link and opens in the new browser tab
  • Check the “test link” in TestInterface — also rendered external

Suggested Solution

Generate links pointing to hostedBaseUrl as “internal” links, i.e. relative (by default), without “external” icon, without target="_blank".

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasier issue for first time contributorshelp wantedContributions are especially encouraged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions