mdx-js / mdx

Markdown for the component era
https://mdxjs.com
MIT License
17.77k stars 1.14k forks source link

Links to docs pages inside docs pages fail to resolve #2365

Closed victor23k closed 1 year ago

victor23k commented 1 year ago

Initial checklist

Affected packages and versions

latest

Link to runnable example

No response

Steps to reproduce

  1. Go to a doc page such as What is MDX?.
  2. Use a link in the page to other page in the docs section such as the § Getting started link in the introduction to the page.

Expected behavior

Be redirected to https://mdxjs.com/docs/getting-started/ in the example showed above.

Actual behavior

The redirections gets you to https://mdxjs.com/docs/what-is-mdx/getting-started/ in the example showed above, which gives a 404: Not found.

Runtime

Node v19

Package manager

npm v9

OS

macOS

Build and bundle tools

No response

victor23k commented 1 year ago

I have tried adding redirections in docs/_config.js and also modifying the links in the mdx pages for the docs, but nothing that I tried works. I don't have a full grasp on how the website is built so I would need some direction in order to fix this, but I would like to do it.

wooorm commented 1 year ago

Thanks!