-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fragment linking doesn't work #24
Comments
Hello! I would like to help with ur isssue. I am still Learning, but i want to try if i could resolve our issues. So could you tell me what fragment you had mentioned? and about no scroll down you mean like making heading a link so whenever user click it will directly land to that link? |
My first volunteer! 🎉️ Welcome @SwagatikaBehera !
I think you got it - https://vsharapov.github.io/INDEXmd/#links should take you down to the heading I remember fragment linking didn't work at the beginning - the browser tries it once after the page is loaded, but doesn't wait for the XHR request to finish and for |
Thank you! |
The content is being rendered, no problem there, but the browser viewport does not get taken to the "Links" section, which is the expected behavior. I tried re-adding I'm still pretty sure the issue is right here where |
Okay I am looking into it. |
Sorry for missing few days. See you have provide an id ="links" to the link section. So in order to reach their , there should be anchor tag where we had to provide that href with same id linking both. But i can't find any. |
That was the case in older HTML versions @SwagatikaBehera . Current recommendation is to use the global |
Okay tell me how will i reach to link section without directly writing anything in URL? Their are 3 links- https://vsharapov.github.io/INDEXmd/#links is actually https://vsharapov.github.io/INDEXmd/?font-family=monospace#links. |
Hey @SwagatikaBehera , I had a hard time understanding your last comment, so I created a fix on branch
However, I just realized that GET parameters which do not appear in |
Currently going to a fragment, e.g. https://vsharapov.github.io/INDEXmd/#links will result in the fragment being cleared, and no scroll down to the "Links" section.
I'm guessing this has something to do with the settings being loaded and the
window.location
being changed.The text was updated successfully, but these errors were encountered: