Closed Bug 780422 Opened 13 years ago Closed 13 years ago

Wiki.page does not handle section correctly

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Jeremie, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:14.0) Gecko/20100101 Firefox/14.0.1 Build ID: 20120713134347 Steps to reproduce: Go to https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array Actual results: The content of the section "Array instances" is not what is expected. It relay on the "page" template (which relay on wiki.page) to keep and add some content from https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/prototype Expected results: The content of the section "Array instances" should display the releated content from https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/prototype
Thanks for reporting this, Jeremie. Copying Les, who should be able to say more.
Les is pretty busy and having some connectivity issues at the moment. Copying James and Luke for their thoughts.
I think the issue is that wiki.page in Kuma expects a page anchor, not the text of a header. But, as far as I can tell, this page works fine: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String If that page is not fine, could someone point at exactly what's wrong and what it should be? On this page, it looks like it had macros like this: {{ page('en-US/docs/JavaScript/Reference/Global_Objects/Array/prototype', 'Mutator methods') }} Whereas this seems to work better: {{ page('en-US/docs/JavaScript/Reference/Global_Objects/Array/prototype', 'Mutator_methods') }} The difference is that "Mutator_methods" is an anchor ID, derived and slugified from "Mutator methods" section text. Not sure how to fix or if this can be fixed in the wiki.page method.
WTF! Looks ok since I hoppen this bug... weird, but works for me :-/
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.