From 043a59a9bd0993c466f2eeb61eea861647f02b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 22 Feb 2019 22:42:38 +0100 Subject: [PATCH] ve.ui.MWSaveDialog: Fix fragment links in visual diff too Follow-up to a22b9c8ea33c79ed07003fbd40d7b66e0a57c1af. Bug: T212554 Change-Id: Id7a16505c11a25f7a61f1394e9d9d1372cbb3d23 --- modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js index eba97607f4..7595e90013 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWSaveDialog.js @@ -148,6 +148,7 @@ ve.ui.MWSaveDialog.prototype.setDiffAndReview = function ( wikitextDiffPromise, ve.targetLinksToNewWindow( diffElement.$document[ 0 ] ); // Run styles so links render with their appropriate classes ve.init.platform.linkCache.styleParsoidElements( diffElement.$document, baseDoc ); + ve.fixFragmentLinks( diffElement.$document[ 0 ], mw.Title.newFromText( ve.init.target.getPageName() ), 'mw-save-visualdiff-' ); return diffElement; }