-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Doc]: Subheading links do not scroll to the appropriate page anchor #28082
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
Comments
A very confusing thing to me that if you right-click "open in new tab" it does work for me and in both cases the URL is the same! https://matplotlib.org/stable/users/explain/quick_start.html#axis-scales-and-ticks |
I see the opposite behaviour in iOS Safari! It’s fine if I just tap the link but wrong if I “open in background“ @Impaler343 has also reported the problem and I reproduced on my work (Windows 10) laptop with both Chrome and Edge but not Firefox (though I only just installed Firefox to check). see #28005 (comment) ff. |
Is there maybe some JavaScript doing funny things? It sounds highly unlikely that this behavior is a bug in the browser. |
In both Chrome and Safari these resolve to "https://matplotlib.org/stable/users/explain/quick_start.html#parts-of-a-figure" which is correct so far as I can tell However when I click on this in Chrome, it does not go to the anchor, whereas it does in Safari. In the source of the <section id="parts-of-a-figure">
<span id="figure-parts"></span><h2>Parts of a Figure<a class="headerlink" href="#parts-of-a-figure" title="Link to this heading">#</a></h2>
<p>Here are the components of a Matplotlib Figure.</p>
...
</section> Is it possible that Chrome doesn't recognize |
I actually think this is a chrome bug. If I do <section id="parts-of-a-figure">
<h1>Boooooo</h1>
Lots of text Lots of text Lots of text Lots of text Lots of text Lots of text Lots of text Lots of text
...
</section>
<section id="boo2">
<h1>Boooooo 2</h1>
Lots of text Lots of text Lots of text Lots of text Lots of text Lots of text Lots of text Lots of text
.....
</section> and navigate to |
Also seems to be a change at v3.8 https://matplotlib.org/3.7.5/users/installing/index.html#installing-a-nightly-build works for me |
If it's version dependent, it cannot be only a chrome bug. The html looks identical AFAICS, |
Yes, fair enough - again still works fine in Safari, but not in Chrome 3.8 seemed to have added more indexing on the left column and better tracking of the document in the right-hand column. Maybe Chrome is keying on those indices rather than in the body? |
Documentation Link
https://matplotlib.org/stable/users/index.html
Problem
When clicking on the subheading links in the quick start guide, the page does not scroll to the appropriate part of the article. Additionally, if you go back to this page and click the subheading link again, it may lead to a different part of the page than before.
Suggested improvement
No response
The text was updated successfully, but these errors were encountered: