Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] Linking between blog markdown files does not handle the date correct in URL #2318

Closed
da-kami opened this issue Feb 25, 2020 · 0 comments · Fixed by #2326
Closed

[v2] Linking between blog markdown files does not handle the date correct in URL #2318

da-kami opened this issue Feb 25, 2020 · 0 comments · Fixed by #2326
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@da-kami
Copy link

da-kami commented Feb 25, 2020

🐛 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:

  1. Create file 2020-02-24-some-file.md in /blog folder
  2. Create file 2020-02-23-some-other-file.md in /blog folder
  3. Link 2020-02-23-some-other-file.md in 2020-02-24-some-file.md like this [link to other file](2020-02-23-some-other-file.md)
  4. Startup the blog
  5. The link wrongly points to: 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:
image

@da-kami da-kami added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Feb 25, 2020
@lex111 lex111 removed the status: needs triage This issue has not been triaged by maintainers label Feb 25, 2020
@lex111 lex111 added this to the v2.0.0-alpha.44 milestone Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants