From a7aeeaffdb50ce07f2cba7e8414d9a7eab76040e Mon Sep 17 00:00:00 2001 From: Kelle Connolly Date: Fri, 18 Dec 2015 14:17:51 +1100 Subject: [PATCH] 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. --- app/assets/javascripts/discourse/lib/page-tracker.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/page-tracker.js.es6 b/app/assets/javascripts/discourse/lib/page-tracker.js.es6 index 9a7dcc9c9d9..351c78211ed 100644 --- a/app/assets/javascripts/discourse/lib/page-tracker.js.es6 +++ b/app/assets/javascripts/discourse/lib/page-tracker.js.es6 @@ -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.