Last modified: 2013-10-31 11:52:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36743, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34743 - mw.util.wikiGetlink should accept URL parameters in its second parameter
mw.util.wikiGetlink should accept URL parameters in its second parameter
Status: RESOLVED DUPLICATE of bug 30803
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.19
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-26 18:59 UTC by Helder
Modified: 2013-10-31 11:52 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2012-02-26 18:59:02 UTC
From
[[mw:Thread:Talk:ResourceLoader/JavaScript Deprecations/importScript(), importStylesheet()]]

----
I would love it if mw.util.wikiGetlink() would accept an additional, optional parameter of type "object" that would add parameters: so if i want to get a page with "?action=edit", i would use mw.util.wikiGetlink(pageName, {action: 'edit'}); etc. if the first parameter is an object, this means i want the current page (just like mw.util.wikiGetlink() with no parameters), but still append the parameters.
this would be in the spirit of most or all of jQuery, calls, and very much in synch with the way to do ajax in jquery.
----
Comment 2 Michael M. 2013-09-13 08:24:26 UTC
Fixed by Kaldari in https://gerrit.wikimedia.org/r/#/c/83834/ without knowing of this report.
Comment 3 Krinkle 2013-10-31 11:52:18 UTC

*** This bug has been marked as a duplicate of bug 30803 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links