Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating to sub-header reverts the URL to main header #15

Open
erhant opened this issue Oct 27, 2023 · 0 comments
Open

Navigating to sub-header reverts the URL to main header #15

erhant opened this issue Oct 27, 2023 · 0 comments

Comments

@erhant
Copy link

erhant commented Oct 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant