Closed
Bug 780595
Opened 12 years ago
Closed 11 years ago
If a page has two or more sections with the same name, only the first section works in the table of contents and #id URLs
Categories
(developer.mozilla.org Graveyard :: Editing, defect, P1)
developer.mozilla.org Graveyard
Editing
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 819912
People
(Reporter: pjk007, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.60 Safari/537.1 Steps to reproduce: String Methods Documentation Not Found Link Broken: "For methods available on String instances, see Methods of String instances." Location: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String#Methods_2
Comment 1•12 years ago
|
||
Confirmed. Thanks for reporting this, pjk007. This looks like a symptom of a larger problem: If a page has two or more sections with the same name (in this case "Methods"), only the first section works in the table of contents and only the first section can be linked to directly. We will be sure to look into it.
Summary: String Documentation Errors → If a page has two or more sections with the same name, only the first section works in the table of contents and #id URLs
Updated•12 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•12 years ago
|
Priority: -- → P1
Comment 2•12 years ago
|
||
Off the top of my head: 1) Seems like MindTouch might have done this: Try to detect already-used IDs and add a unique number on repeats. (eg. Examples, Examples_2, Examples_3, etc) 2) Try not to use the same name for sections in future documents. But, when the need arises, go into source mode and add a name="..." attribute to the header with a page-unique value.
Assignee | ||
Updated•12 years ago
|
Component: Docs Platform → Editing
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•