Title: Glossary URLs with anchor link no longer jump to definitions
Type: behavior Stage:
Components: Documentation Versions: Python 3.11, Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: AlexWaygood, docs@python, mdk, rhettinger, trey
Priority: normal Keywords:

Created on 2022-01-10 17:20 by trey, last changed 2022-01-11 04:50 by ned.deily.

Messages (3)
msg410234 - (view) Author: Trey Hunner (trey) * Date: 2022-01-10 17:20
The glossary page allows for anchor links to jump to specific definitions.

For example: will open the glossary page with the web browser showing the LBYL at the top of the page.

This no longer works in Python 3.10 and Python 3.11 documentation.

Opening either of those links in Chrome or Firefox on my machine results in the glossary page being opened without any scrolling (the top of the glossary page is shown rather than the LBYL definition).
msg410235 - (view) Author: Alex Waygood (AlexWaygood) * (Python triager) Date: 2022-01-10 17:36
Reproduced on safari on my iPad, as well.
msg410247 - (view) Author: Trey Hunner (trey) * Date: 2022-01-10 19:19
I just realized those only affects some terms.

parameter works:

And LBYL does work but only if LBYL was used:

The EAFP term does link to #term-LBYL instead of the old #term-lbyl.

It looks like the capitalization changed. The search doesn't seem to know that though (the LBYL glossary link at the top is broken):

I would vote for changing the link back to lowercase rather than changing the search to link to the new URL. Otherwise links to specific glossary terms scattered around the internet will all link to the top of the glossary page instead.
Date User Action Args
2022-01-11 04:50:58ned.deilysetnosy: + mdk
2022-01-10 20:31:32rhettingersetnosy: + rhettinger
2022-01-10 19:19:45treysetmessages: + msg410247
2022-01-10 17:36:32AlexWaygoodsetnosy: + AlexWaygood
messages: + msg410235
2022-01-10 17:20:52treycreate