diff --git a/modules/ve/ui/dialogs/ve.ui.MWMediaInsertDialog.js b/modules/ve/ui/dialogs/ve.ui.MWMediaInsertDialog.js index ebf88852de..27c7333416 100644 --- a/modules/ve/ui/dialogs/ve.ui.MWMediaInsertDialog.js +++ b/modules/ve/ui/dialogs/ve.ui.MWMediaInsertDialog.js @@ -59,7 +59,8 @@ ve.ui.MWMediaInsertDialog.prototype.onClose = function ( action ) { 'href': info.descriptionurl, 'src': info.thumburl, 'width': info.thumbwidth, - 'height': info.thumbheight + 'height': info.thumbheight, + 'resource': './' + this.item.title } }, { 'type': '/mwBlockImage' }