We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3168ba8 commit 2caca26Copy full SHA for 2caca26
addon/routes/index.js
@@ -1,10 +1,13 @@
1
+import { getOwner } from "@ember/application";
2
import Route from "@ember/routing/route";
3
import { service } from "@ember/service";
4
5
export default class IndexRoute extends Route {
6
@service hostRouter;
7
8
beforeModel() {
- this.hostRouter.transitionTo("ember-emeis.users");
9
+ const owner = getOwner(this);
10
+ const mountPoint = owner.mountPoint;
11
+ this.hostRouter.transitionTo(`${mountPoint}.users`);
12
}
13
0 commit comments