mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "Fix exception editing cross-wiki redirects"
This commit is contained in:
commit
1b777d45e0
|
@ -35,7 +35,9 @@ ve.dm.MWRedirectMetaItem.static.matchRdfaTypes = [ 'mw:PageProp/redirect' ];
|
|||
ve.dm.MWRedirectMetaItem.static.toDataElement = function ( domElements, converter ) {
|
||||
// HACK piggy-back on MWInternalLinkAnnotation's ./ stripping logic
|
||||
const linkData = ve.dm.MWInternalLinkAnnotation.static.toDataElement( domElements, converter );
|
||||
linkData.type = this.name;
|
||||
if ( linkData ) {
|
||||
linkData.type = this.name;
|
||||
}
|
||||
return linkData;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue