Last modified: 2011-11-14 20:52:38 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 T33500, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31500 - WikiEditor articlePathRegex does not handle query string parameters
WikiEditor articlePathRegex does not handle query string parameters
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikiEditor (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-07 17:32 UTC by Dan Barrett
Modified: 2011-11-14 20:52 UTC (History)
3 users (show)

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


Attachments

Description Dan Barrett 2011-10-07 17:32:27 UTC
This problem is dependent on solving bug 31499, otherwise you can't see the behavior.

1. In the insert-link dialog of WikiEditor, enter a http link to a wiki page, plus a query string. For example, if your wiki is mywiki.com, enter:

http://mywiki.com/wiki/MyPage?action=purge

The editor warns you:

The URL you specified looks like it was intended as a link to another wiki page. Do you want to make it an internal link?

You click "Internal Link", and the link changes to:

MyPage?action=purge

which then inserts (wrongly):

[[MyPage?action=purge]]

Ideally it should get turned into:

[{{fullurl:MyPage|action=purge}} link text]

WikiEditor fails similarly if you enter the "index.php?title=" form of the title:

http://mywiki.com/w/index.php?title=MyPage

This does not get recognized as an internal link to the local wiki. Ideally it would get turned into:

[[MyPage]]

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


Navigation
Links