New submission from Baptiste Mispelon:

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.

----------
assignee: docs@python
components: Documentation
messages: 214245
nosy: bmispelon, docs@python
priority: normal
severity: normal
status: open
title: Wrong URL fragment identifier in search result
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20997>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to