For example, if you go to https://docs.huff.sh/get-started/huff-by-example/#constructor-and-main it scrolls to the header correctly, and right after that the URL goes back to https://docs.huff.sh/get-started/huff-by-example/#macros which is the parent header that the previous header is child of.
Similarly, if you click to any sub-header (such as Macro Arguments header just below the in the previous link) the url first switches to https://docs.huff.sh/get-started/huff-by-example/#macro-arguments and then goes back to https://docs.huff.sh/get-started/huff-by-example/#macros.
After this URL change happens, if you click on that same sub-header, the URL does not change anymore and works as intended.