mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
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:
parent
1704a362ef
commit
a7aeeaffdb
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue