https://bugzilla.wikimedia.org/show_bug.cgi?id=30803

       Web browser: ---
             Bug #: 30803
           Summary: mw.util.wikiGetlink should allow query parameter
                    passing
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: Unprioritized
         Component: Resource Loader
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Created attachment 9023
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=9023
patch for passing query string

mw.util.wikiGetlink should allow query parameters to be passed
and thus effect the relative URL created.

Examples:

mw.util.wikiGetlink({
  title: 'Main Page',
  action: 'edit'
});

mw.util.wikiGetlink( "Main Page", {
  action:
})

Both return: /w/index.php?title=Main_Page&action=edit

While:

mw.util.wikiGetlink( "Main Page" );
mw.util.wikiGetlink({ title: "Main Page" })

Both return "/wiki/Main_Page"

Patch included.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to