[v2] Linking between blog markdown files does not handle the date correct in URL #2318
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Milestone
🐛 Bug Report
When linking to another
.md
file within the blog, the URL is not correctly constructed.Have you read the Contributing Guidelines on issues?
Yes.
To Reproduce
Assuming that blog was already configured:
2020-02-24-some-file.md
in/blog
folder2020-02-23-some-other-file.md
in/blog
folder2020-02-23-some-other-file.md
in2020-02-24-some-file.md
like this[link to other file](2020-02-23-some-other-file.md)
http://localhost:3000/blog/2020/02/24/2020-02-23-some-other-file.md
Expected behavior
The link should point to:
http://localhost:3000/blog/2020/02/23/some-other-file.md
Actual Behavior
The link wrongly points to:
http://localhost:3000/blog/2020/02/24/2020-02-23-some-other-file.md
Reproducible Demo
Concrete demo of the problem:
Example blog post:
https://deploy-preview-21--comit-network.netlify.com/blog/2019/07/11/a-closer-look-on-bitcoin
If you try to click on the link behind
original blog post
which links to a different blog post (like this in code:[original blog post](2018-06-23-connect-all-the-blockchains.md)
) then it points to:http://localhost:3000/blog/2019/07/11/2018-06-23-connect-all-the-blockchains.md
Screen shot:
The text was updated successfully, but these errors were encountered: