Link elements do not follow anchors when these are accentuated
See original GitHub issueIf in a mdx file I have something like
# This is my áccentuated title
and later I grab the tableOfContents
through graphQL, I can see that tableOfContents.items[].node.url
and the id
property passed to the h1
node has the accent
id="This-is-my-áccentuated-title"
The link you can recreate with "to="mywebpage#This-is-my-áccentuated-title"
doesn’t go to the anchor because of the accent (at least what I’m seeing in Chrome)
One easy workaround would be to just remove accents when creating the id
names, but AFAIK it cannot be done by the user (?)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Guide to scroll anchoring - CSS: Cascading Style Sheets | MDN
Scroll anchoring is a browser feature that aims to solve this problem of content jumping, which happens if content loads in after the...
Read more >Anchors and Pins - FontLab VI Help
Anchors work on glyphs, while Pins work similarly, but on Elements. When an anchor is selected, you can see its properties not only...
Read more >apostrophe-rich-text anchor name and adding attributes to ...
In my experience the link tool can find anchors pretty well. It could be specific to using the name attribute rather than an...
Read more >The Anchor element in HTML
An anchor is a piece of text which marks the beginning and/or the end of a hypertext link. The text between the opening...
Read more >overflow-anchor - CSS-Tricks
If those elements have not loaded by the time we have scrolled down the page, the DOM will continue to load them even...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in latest!
@kuworking Thanks for reporting. I spent some time yesterday looking into this and have absolutely reproduced it.
To document my findings here is a few things:
In a native HTML page
In Gatsby
I haven’t identified yet if this is a Gatsby problem, or with @reach/router, but there is definitely an inconsistency here and we’d like to align with the platform.