diff --git a/resources/dist/index.js b/resources/dist/index.js index 7aec822be..047f708ea 100644 Binary files a/resources/dist/index.js and b/resources/dist/index.js differ diff --git a/resources/dist/index.js.map.json b/resources/dist/index.js.map.json index 61c3ddf95..7de713c7c 100644 Binary files a/resources/dist/index.js.map.json and b/resources/dist/index.js.map.json differ diff --git a/src/changeListeners/pageviews.js b/src/changeListeners/pageviews.js index f8df5fb41..63e660077 100644 --- a/src/changeListeners/pageviews.js +++ b/src/changeListeners/pageviews.js @@ -26,7 +26,9 @@ export default function pageviews( /* eslint-disable camelcase */ source_page_id: page.id, source_namespace: page.namespaceId, - source_title: mw.Title.newFromText( page.title ).getPrefixedDb(), + source_title: page.namespaceId === -1 ? + mw.config.get( 'wgCanonicalSpecialPageName' ) : + mw.Title.newFromText( page.title ).getPrefixedDb(), source_url: page.url, page_id: pageview.page_id, page_namespace: pageview.page_namespace,