Skip to content

Root paths (/xxx) resolving as relative paths #466

@liWanr

Description

@liWanr

Bug description

Hi, I’m seeing an issue where root paths seem to be treated as relative paths.

For example, using this Markdown link:

[Ubuntu 22.04+](/dev/docker/install/#ubuntu)

When used on /dev/docker/, it works correctly.

But when used on /blog/tip/, it resolves to:

/blog/tip//dev/docker/install/#ubuntu

instead of:

/dev/docker/install/#ubuntu

Is there a setting that causes /xxx paths to behave as relative URLs?

Related links

It appears the documentation does not contain any relevant content.

Reproduction

reproduction.tar.gz

Steps to reproduce

You can view it simply by launching it directly.

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions