mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Handle encoding of links in transclusion nodes properly when determining existence"
This commit is contained in:
commit
63e09d4659
|
@ -136,9 +136,9 @@ ve.ce.MWTransclusionNode.prototype.getRenderedDomElements = function ( domElemen
|
|||
var targetData = ve.dm.MWInternalLinkAnnotation.static.getTargetDataFromHref(
|
||||
this.href, this.ownerDocument
|
||||
),
|
||||
normalisedHref = targetData.title;
|
||||
if ( mw.Title.newFromText( targetData.title ) ) {
|
||||
normalisedHref = mw.Title.newFromText( targetData.title ).getPrefixedText();
|
||||
normalisedHref = decodeURIComponent( targetData.title );
|
||||
if ( mw.Title.newFromText( normalisedHref ) ) {
|
||||
normalisedHref = mw.Title.newFromText( normalisedHref ).getPrefixedText();
|
||||
}
|
||||
ve.init.platform.linkCache.styleElement( normalisedHref, $( this ) );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue