Skip to content

[Bug]: path normalization doesn't handle symlink pointing outside docs correctly w or w/o mdxRs #2053

@JounQin

Description

@JounQin

Version

System:
    OS: macOS 15.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 3.80 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 135.0.7049.85
    Safari: 18.4
  npmPackages:
    @rspress/config: workspace:* => 1.0.0

Details

With mdxRs enabled

- "http://localhost:53796/internal/content.html",
+ "http://localhost:53796/content.mdx.html",

With mdxRs disabled

- "http://localhost:53330/internal/content.html",
+ "http://localhost:53330/outside/content.html",

Reproduce link

#2052

Reproduce Steps

pnpm test:e2e symlin

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