Skip to content

structure-dir router generates invalid link on module index #2928

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
bkeepers opened this issue Apr 5, 2025 · 2 comments
Closed

structure-dir router generates invalid link on module index #2928

bkeepers opened this issue Apr 5, 2025 · 2 comments
Milestone

Comments

@bkeepers
Copy link
Contributor

bkeepers commented Apr 5, 2025

Search terms

entryPointStrategy packages router structure-dir undefined

Expected Behavior

Index pages for a module like the screenshot below would create valid links
Image

Actual Behavior

Links on the index pages for each module all point to href="#undefined"

Steps to reproduce the bug

  1. Monorepo setup with this typedoc.json:
    {
      "$schema": "https://typedoc.org/schema.json",
      "entryPointStrategy": "packages",
      "entryPoints": [
        "packages/*",
      ],
      "router": "structure-dir"
    }
    
  2. run typedoc
  3. See links with #undefined on index pages for each module

Environment

  • Typedoc version: 0.28.1
  • TypeScript version: 5.8.2
  • Node.js version: 20.19.0
  • OS: MacOS & GitHub Actions
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Apr 6, 2025

Well that's a weird one! It makes me regret making the broken link log a debug level instead of leaving at warning... I might have noticed it before release if I had. Hopefully won't be too difficult to fix.

@Dayday10
Copy link

Dayday10 commented Apr 6, 2025

What is all of this about?

@Gerrit0 Gerrit0 added this to the v0.28.2 milestone Apr 7, 2025
@Gerrit0 Gerrit0 closed this as completed in e27a6b7 Apr 7, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants