mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "DesktopArticleTarget: Regenerate title in all non-view page scenarios"
This commit is contained in:
commit
baf1908b99
|
@ -66,8 +66,8 @@ ve.init.mw.DesktopArticleTarget = function VeInitMwDesktopArticleTarget( config
|
|||
currentUri.query.diff === undefined
|
||||
);
|
||||
|
||||
if ( $( '#wpTextbox1' ).length ) {
|
||||
// We're loading on top of the classic wikitext editor, so we don't
|
||||
if ( !this.isViewPage ) {
|
||||
// We're loading on top of a non-view page so we don't
|
||||
// know the "proper" page title. But we can fake it with information
|
||||
// we have.
|
||||
this.originalDocumentTitle = ve.msg( 'pagetitle', mw.Title.newFromText( mw.config.get( 'wgPageName' ) ).getPrefixedText() );
|
||||
|
|
Loading…
Reference in a new issue