Skip to content

Relative link to classes contain unnecessary dot for current folder #2910

Closed
@krisztianb

Description

@krisztianb

Search terms

current folder, dot, relative path

Expected Behavior

In the documentation of module a.ts the URL to the generated documentation of the class A used to be (in previous TypeDoc versions):

../classes/a.A.html

Actual Behavior

The URL to the generated documentation of the class A is with TypeDoc version 0.28.0 has changed to:

.././classes/a.A.html

While this is irrelevant for the behavior of the page the additional ./ was not there in previous versions of TypeDoc and could be removed as it serves no purpose in my opinion. I noticed this by coincidence because the change in the URLs break the tests of my plugin.

Steps to reproduce the bug

Check out this branch of my plugin repo:
https://github.com/krisztianb/typedoc-plugin-merge-modules/tree/GH-23-update-dependencies

Run:

npm i
npm run build
npm test

The very first test should generate the described documentation and fail.

Environment

  • Typedoc version: 0.28.0
  • TypeScript version: 5.8.2
  • Node.js version: 20.12.2
  • OS: Windows 10 Home

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions