This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Wrong URL fragment identifier in search result
Type: behavior Stage:
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: docs@python Nosy List: BreamoreBoy, bmispelon, docs@python, ezio.melotti, georg.brandl
Priority: normal Keywords:

Created on 2014-03-20 14:50 by bmispelon, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg214245 - (view) Author: Baptiste Mispelon (bmispelon) * Date: 2014-03-20 14:50
When doing a search for "PYTHONDONTWRITEBYTECODE" on the 2.7 docs (http://docs.python.org/2/search.html?q=PYTHONDONTWRITEBYTECODE), the first (and only) search result is the following link:

http://docs.python.org/2/using/cmdline.html?highlight=pythondontwritebytecode#PYTHONDONTWRITEBYTECODE

(note the `#PYTHONDONTWRITEBYTECODE` at the end)

Clicking this link takes you to the right page but the browser doesn't scroll to the correct position on the page as expected.

This is because there's no element with an `id` of `PYTHONDONTWRITEBYTECODE`. The correct id is `envvar-PYTHONDONTWRITEBYTECODE`.


Things work as expected when searching on version 3 docs (http://docs.python.org/3/search.html?q=PYTHONDONTWRITEBYTECODE), where the correct fragment identifier is generated in the search results.
msg216919 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-04-20 22:42
It might be a bug in the older Sphinx version used to build the 2.x docs.  If this is the case, it's probably not worth fixing.  Georg?
msg228515 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-10-05 00:38
What's the verdict on this guys?
msg228554 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2014-10-05 09:52
Not a Python issue.
History
Date User Action Args
2022-04-11 14:58:00adminsetgithub: 65196
2014-10-05 09:52:25georg.brandlsetstatus: open -> closed

messages: + msg228554
2014-10-05 00:38:51BreamoreBoysetstatus: pending -> open
nosy: + BreamoreBoy
messages: + msg228515

2014-04-20 22:42:42ezio.melottisetstatus: open -> pending

nosy: + georg.brandl, ezio.melotti
messages: + msg216919

resolution: wont fix
2014-03-20 14:50:03bmispeloncreate