diff --git a/app/assets/javascripts/discourse/controllers/group.js.es6 b/app/assets/javascripts/discourse/controllers/group.js.es6 index b6e9a7ab8f4..6200457d724 100644 --- a/app/assets/javascripts/discourse/controllers/group.js.es6 +++ b/app/assets/javascripts/discourse/controllers/group.js.es6 @@ -2,6 +2,8 @@ import EmberObject from "@ember/object"; import { inject } from "@ember/controller"; import Controller from "@ember/controller"; import { default as discourseComputed } from "discourse-common/utils/decorators"; +import { inject as service } from "@ember/service"; +import { readOnly } from "@ember/object/computed"; const Tab = EmberObject.extend({ init() { @@ -17,6 +19,8 @@ export default Controller.extend({ counts: null, showing: "members", destroying: null, + router: service(), + currentPath: readOnly("router._router.currentPath"), @discourseComputed( "showMessages", diff --git a/app/assets/javascripts/discourse/templates/group.hbs b/app/assets/javascripts/discourse/templates/group.hbs index 6a7d2e0b14f..8385894c0cb 100644 --- a/app/assets/javascripts/discourse/templates/group.hbs +++ b/app/assets/javascripts/discourse/templates/group.hbs @@ -56,7 +56,7 @@
- {{group-navigation group=model currentPath=router._router.currentPath tabs=tabs}} + {{group-navigation group=model currentPath=currentPath tabs=tabs}}