Merge pull request #3927 from kellec/update-analytics-url

Add Discourse.getURL to the url passed into page view events
This commit is contained in:
Régis Hanol 2015-12-18 12:30:58 +01:00
commit f48419526d
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const PageTracker = Ember.Object.extend(Ember.Evented, {
router.on('didTransition', function() {
this.send('refreshTitle');
var url = this.get('url');
var url = Discourse.getURL(this.get('url'));
// Refreshing the title is debounced, so we need to trigger this in the
// next runloop to have the correct title.