Closed Bug 730320 Opened 13 years ago Closed 13 years ago

Lists generated with mediawiki-bugzilla should link to bugzilla tickets

Categories

(Websites :: wiki.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ckoehler, Unassigned)

References

Details

(Whiteboard: [mediawiki-bugzilla])

Lists of bugs auto-generated with the mediawiki-bugzilla plugin generate links to whatever is in the url field of the given bug, rather than to the bug itself. 

See the following examples:
https://wiki.mozilla.org/Websites/Firefox_Flicks/Status
https://wiki.mozilla.org/Websites/Affiliates/Bugs/Open

Instead, the link should go to the actual bugzilla bug.
And for bugs that don't have anything in the URL field, the links just point to the current wiki page.
I created this pull request to change this around: https://github.com/lmandel/mediawiki-bugzilla/pull/1

There's no actual piece in the JSON returned by the query that points to the bug's actual bugzilla entry, so I'm manually creating the URL based on the bug's id. ('ref' points to the bug's REST API url. 'url' points to the bug's user-set "url" field.) 
Though now that I think about this, that's hardcoded to BMO, and probably can't be used upstream since other bugzilla/mediawiki installations would be messed up with it.
I fixed up the change from Wes to use the Bugzilla URL specified in bugzilla.php. I submitted a pull request against https://github.com/mozilla/mediawiki-bugzilla
This looks to be fixed in the latest deployed version.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.