Closed shinout closed 3 years ago
This should work as intended if you use lowercase, i.e. doc1#images
instead of doc1#Images
Indeed! Anchor links are slugified hence will become lower case. Thanks Teik Jun! Hi there fellow πΈπ¬ -ean!
Hi Yangshun! :D
Thank you for your help. Then I'm wondering how to link multibyte strings. I use Japanese and this happens when an anchor contains some Japanese characters. It won't work well.
Hi @shinout, if you think we should reopen, can you make a repro please?
I've made a repro for the issue mentioned by @shinout
To Reproduce:
It goes to the start of the page instead of the actual header
Reproducible Demo: Repo: https://github.com/teikjun/docusaurus-anchor-repro
@teikjun Thank you for that! Btw are you an MLH fellow? Just wondering about the increased interaction here π
Yup, I'm an MLH Fellow! I heard about the fellowship from your tweet π
Oh that's great! Look @JoelMarcey I hired a fellow without knowing π
Welcome @teikjun!!
@teikjun Thank you for preparing reproduction! @yangshun Thanks for reopen the issue.
Should I add to the title of this issue when using multibyte string
?
π Bug Report
Cannot move to another page's anchor when clicking the link.
Have you read the Contributing Guidelines on issues?
yes
To Reproduce
Add a page named "doc1" with the following contents
Expected behavior
Move to the "bar" on the page "doc1"
Actual Behavior
Just move to the page "doc1", but the scroll position is incorrect (=top).
Your Environment
Reproducible Demo
https://shinout.github.io/docusaurus-incorrect-anchor-move-repro/docs
doc1#Images
at Document Number 2(doc2)