Include the `currentRouteName` in the page change event

This commit is contained in:
Robin Ward 2017-09-28 14:31:20 -04:00
parent 954013a45c
commit 01c6224ca5
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ export function startPageTracking(router, appEvents) {
// next runloop to have the correct title.
Ember.run.next(() => {
let title = Discourse.get('_docTitle');
appEvents.trigger('page:changed', { url, title });
appEvents.trigger('page:changed', {
url,
title,
currentRouteName: router.get('currentRouteName')
});
});
transitionCount++;