diff --git a/includes/WikiEditorHooks.php b/includes/WikiEditorHooks.php index 3a58f94c..8d6596d0 100644 --- a/includes/WikiEditorHooks.php +++ b/includes/WikiEditorHooks.php @@ -119,7 +119,14 @@ class WikiEditorHooks { $data['init_mechanism'] = 'click'; } } else { - $data['init_mechanism'] = 'url'; + if ( + $request->getVal( 'section' ) === 'new' + || !$article->getPage()->exists() + ) { + $data['init_mechanism'] = 'url-new'; + } else { + $data['init_mechanism'] = 'url'; + } } self::doEventLogging( 'init', $article, $data );