-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Navigate to page sections using # doesn't work #9431
Comments
Your site requires to log in, so it is impossible to help you. Please provide minimal a valid repro that we can properly debug using latest version of Docusaurus, using docusaurus.new Until then I consider this is not a bug, cf https://docusaurus.io/docs#staying-informed |
@mohamedsaleh1984 Does your page contain any images before the anchor, aka @slorber I wouldn't say doesn't work but there's an issue about anchor links not navigating correctly when there are images in the page. For example, it's reproducible in one of the official Docusaurus Documentation pages. It happens on the first launch but slightly: Actual reproduce steps:
I believe that has to do with images being loaded asynchronously. At initial render, those dimensions will be 0 and it will scroll accordingly. |
No we don't have images, this is the full MD file.
|
We have created a dev user for test You can notice the scroll doesn't move down to the bottom of the page. |
@furkanarabaci your problem is not related to an image but a Mermaid diagram. |
I see, created a new issue for my problem to not clutter an irrelevant issue at #9520. Thanks for your answer |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
when you paste the url including the section, the browser doesn't navigate to the section mentioned after # in th URL
https://test.com/docs/testpage#videos
Reproducible demo
No response
Steps to reproduce
Expected behavior
scroll down to the section mentioned from the URL # value
Actual behavior
Stuck at the top of the page.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: