Last modified: 2013-08-26 15:57:06 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 T55346, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53346 - mw.message.parse() throws error for messages with pattern [[$1|abc]]
mw.message.parse() throws error for messages with pattern [[$1|abc]]
Status: RESOLVED DUPLICATE of bug 47395
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.22.0
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-26 14:39 UTC by Rainer Rillke @commons.wikimedia
Modified: 2013-08-26 15:57 UTC (History)
3 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2013-08-26 14:39:56 UTC
Original bug title:
mw.message.parse() throws error for messages with pattern [[$1|abc]]
----

How to reproduce:
mw.loader.using('mediawiki.jqueryMsg', function() {
    mw.messages.set({ 'abc': 'x[[$1|abc]]' });
    var html = mw.message('abc', 'a wikipage').parse();
    // html is now: abc: Parse error at position 1 in input: x[[$1|abc]]
});

----
Expected result:
html === 'x<a href="/wiki/a_wikipage" title="a wikipage">abc</a>'
Comment 1 Bartosz Dziewoński 2013-08-26 15:57:06 UTC

*** This bug has been marked as a duplicate of bug 47395 ***

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


Navigation
Links