Skip to content

Referencing docs between multi-doc instances not possible when using .md/.mdx in URL? #4388

Answered by slorber
Dannyholt asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

If you want to use md file paths you should use relative paths otherwise those paths will be resolved from the root of your FS (not 100% sure, may be wrong)

So the correct relative path may probably be something like: [hello](../faq/hello.md).
Using relative paths is important for versioning because it ensure that /1.0/faq links to /1.0/api instead of linking to /api.

Also, one plugin instance is not aware of the route paths and md files of the other plugin instances so it is not possible to link this way from one plugin to another.

If you have ios 1.0 + 2.0, and android 2.0 + 3.0. When android 3.0 use a link like [ios](/ios-intro.md), it is impossible for Docusaurus to know if you wa…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dannyholt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants