Skip to content

Same-level, sub-folder links, don't resolve properly #424

Closed
@davestewart

Description

@davestewart

I'm finding that relative links don't resolve properly in subfolders.

Take this directory structure:

+- docs
    +- foo
        +- bar.md
        +- baz.md

If I'm in /#/foo/bar then click to navigate to baz:

Click to go to the [baz](baz.md) page.

The HTML link renders like this:

Click to go to the <a href="#/baz"> page

It should be:

Click to go to the <a href="#/foo/baz"> page

I've also tried with history mode, but I get:

<a href="/baz">

I've also tried changing the basePath configuration but no luck.

The only way I have managed to get this to work is with absolute paths:

// within /foo/bar.md

[baz](/foo/baz.md)

Have I missed something?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions