Hello!
I’ve noticed a strange behavior in a Hugo project I’m building. Apologies in advance for not being able to provide a link to a project repository, but it has to remain private.
I have a simple relref that leads to an anchor point on a page of about 6000 lines with roughly 500 headers (it’s a schemas page for an API so there’s lots of information). The page also has some short code blocks and tables in many of the different header sections. I’ve noticed the following two distinct behaviours:
-
Clicking directly on the link lands on the page and momentarily falls at the correct anchor position before the page subsequently reloads (not sure why) and the anchor gets offset completely.
-
This behaviour doesn’t seem to happen when I open the page in a new tab.
I’ve looked at the function calls being made in the browser to see what is different, and the only thing I notice is a livereload.js call that happens at the time of the reload happening. Currently running Hugo version 90.1.
I appreciate any help on the matter and I’ll try to provide any extra information needed as much that is at my disposal! Thank you!