Author: jace
Description:
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
Version: 1.16.x
Severity: minor