Skip to content

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

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 <ahref="#/baz"> page

It should be:

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

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

<ahref="/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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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