diff --git a/app/assets/javascripts/discourse/controllers/application.js.es6 b/app/assets/javascripts/discourse/controllers/application.js.es6 index ce23c502faa..0d02180d769 100644 --- a/app/assets/javascripts/discourse/controllers/application.js.es6 +++ b/app/assets/javascripts/discourse/controllers/application.js.es6 @@ -4,6 +4,7 @@ import { isAppWebview, isiOSPWA } from "discourse/lib/utilities"; export default Ember.Controller.extend({ showTop: true, showFooter: false, + router: Ember.inject.service(), @computed canSignUp() { diff --git a/app/assets/javascripts/discourse/templates/application.hbs b/app/assets/javascripts/discourse/templates/application.hbs index ad010cbbf65..f0dbf0d29fc 100644 --- a/app/assets/javascripts/discourse/templates/application.hbs +++ b/app/assets/javascripts/discourse/templates/application.hbs @@ -7,7 +7,7 @@ toggleAnonymous=(route-action "toggleAnonymous") logout=(route-action "logout")}} -{{plugin-outlet name="below-site-header" args=(hash currentPath=currentPath)}} +{{plugin-outlet name="below-site-header" args=(hash currentPath=router._router.currentPath)}}