Merge "Fix exception editing cross-wiki redirects"

This commit is contained in:
jenkins-bot 2024-08-29 22:54:21 +00:00 committed by Gerrit Code Review
commit 1b777d45e0

View file

@ -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;
};