Last modified: 2010-05-15 16:03:20 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 T18850, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16850 - getLocalUrl breaks on $wgActionPaths with query strings
getLocalUrl breaks on $wgActionPaths with query strings
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.13.x
Other Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-31 15:37 UTC by Serra Labán, Eloy Alejandro Lautaro
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

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


Attachments

Description Serra Labán, Eloy Alejandro Lautaro 2008-12-31 15:37:01 UTC
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").

<code>
$wgScriptPath       = "/wiki";
$wgArticlePath      = "/w/$1";

$actions = array('view', 'edit', 'watch', 'unwatch', 'delete','revert', 'rollback', 'protect',
  'unprotect','info','markpatrolled','validate','render','deletetrackback','print',
  'dublincore','creativecommons','credits','submit','viewsource','history','purge');
 
foreach ($actions as $a) 
  $wgActionPaths[$a] = $wgArticlePath.'?action='.$a;
</code>
Comment 1 Chad H. 2009-01-02 02:23:14 UTC
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 :)
Comment 2 Chad H. 2009-01-02 16:35:05 UTC
Fixed in r45324

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


Navigation
Links