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)
developer.mozilla.org Graveyard
Editing
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
| Reporter | ||
Comment 1•13 years ago
|
||
Comment 2•13 years ago
|
||
Thanks for reporting this, Jeremie. Copying Les, who should be able to say more.
Comment 3•13 years ago
|
||
Les is pretty busy and having some connectivity issues at the moment. Copying James and Luke for their thoughts.
Comment 4•13 years ago
|
||
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.
Comment 5•13 years ago
|
||
Er, I meant on *this* page:
https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array
| Reporter | ||
Comment 6•13 years ago
|
||
WTF! Looks ok since I hoppen this bug... weird, but works for me :-/
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•13 years ago
|
Version: Kuma → unspecified
| Assignee | ||
Updated•13 years ago
|
Component: Docs Platform → Editing
Updated•5 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
•