srid/emanote

Anchor links often scroll to bottom of page

srid opened this issue · 2 comments

srid commented

contd. from #500 (comment)

I believe this was introduced in #361

image

The problem is that Ema's shim looks for # in the beginning of URL before doing the direct scroll:

image

Which this change bypasses, causing a whole page load to happen, as confirmed in browser console:

image

"Switching to /guide/markdown#fn1" is the page load, which it shouldn't be doing.


What's the solution? Do we go back to JavaScript anchors? Or, can we fix Ema?

srid commented

srid/ema#162 fixes it