Page MenuHomePhabricator

getLocalUrl breaks on $wgActionPaths with query strings
Closed, ResolvedPublic


Author: wpedia

I have this config in LocalSettings. When I link to a new article links to "/w/NewArticle?action=edit?redlink=1" (must be "/w/NewArticle?action=edit&redlink=1").

$wgScriptPath = "/wiki";
$wgArticlePath = "/w/$1";

$actions = array('view', 'edit', 'watch', 'unwatch', 'delete','revert', 'rollback', 'protect',


foreach ($actions as $a)

$wgActionPaths[$a] = $wgArticlePath.'?action='.$a;


Version: 1.13.x
Severity: normal
OS: Linux
Platform: Other



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:27 PM
bzimport set Reference to bz16850.
bzimport added a subscriber: Unknown Object (MLST).

Changing summary to what is probably the case. It seems to be that getLocalUrl() isn't taking into account that an action path might already have query string. An edge case, but needs fixing :)