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

           Summary: API call Title->getLocalURL does not respect
                    $wgArticlePath when given a query
           Product: MediaWiki
           Version: 1.16.0
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: easy
          Severity: enhancement
          Priority: Normal
         Component: General/Unknown
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: j...@pobox.com


MediaWiki's includes/Title.php defines a Title class with a getLocalURL
function. If $wgArticlePath is defined (for pretty URLs) when this function is
called, it returns a pretty URL. However, if a query parameter is given
(without an action), $wgArticlePath is not considered. Compare code:

Without a query parameter:
http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_0/phase3/includes/Title.php?view=markup#l801

With a query parameter:
http://svn.wikimedia.org/viewvc/mediawiki/tags/REL1_16_0/phase3/includes/Title.php?view=markup#l824

This shows up with extensions that add query parameters to some pages. Here's
an example from Semantic Result Formats calendar:

Calendar with current month: http://discoursedb.org/wiki/Opinion_calendar
Calendar with specific month:
http://discoursedb.org/w/index.php?title=Opinion_calendar&month=11&year=2010

Expected URL: http://discoursedb.org/wiki/Opinion_calendar?month=11&year=2010

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to