diff --git a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js index 3562504759..ea28a58c2a 100644 --- a/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve-mw/init/targets/ve.init.mw.ViewPageTarget.js @@ -1539,6 +1539,14 @@ ve.init.mw.ViewPageTarget.prototype.replacePageContent = function ( var $content = $( $.parseHTML( html ) ), $editableContent; if ( lastModified ) { + // If we were not viewing the most recent revision before (a requirement + // for lastmod to have been added by MediaWiki), we will be now. + if ( !$( '#footer-info-lastmod' ).length ) { + $( '#footer-info' ).prepend( + $( '