Add Discourse.getURL to the url passed into page view events

This means that instances in a subdirectory correctly receive the
subfolder string as a part of the path.
This commit is contained in:
Kelle Connolly 2015-12-18 14:17:51 +11:00
parent 1704a362ef
commit a7aeeaffdb

View file

@ -21,7 +21,7 @@ const PageTracker = Ember.Object.extend(Ember.Evented, {
router.on('didTransition', function() { router.on('didTransition', function() {
this.send('refreshTitle'); 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 // Refreshing the title is debounced, so we need to trigger this in the
// next runloop to have the correct title. // next runloop to have the correct title.