mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Actually replace all underscores in wikilink target
Change-Id: I633f8d6e4f639aff90fd456600376b7c6515fd50
This commit is contained in:
parent
3f2c72f920
commit
2774e5aa6c
|
@ -123,7 +123,7 @@ WSP._linkHandler = function( state, token ) {
|
|||
if ( attribDict.rel && attribDict.href !== undefined ) {
|
||||
var target = decodeURIComponent(
|
||||
attribDict.href.substr( state.env.wgScriptPath.length + 1 )
|
||||
.replace( '_', ' ' )
|
||||
.replace( /_/g, ' ' )
|
||||
);
|
||||
|
||||
if ( attribDict.rel === 'mw:wikiLink' ) {
|
||||
|
|
Loading…
Reference in a new issue