Skip to content

Commit 2caca26

Browse files
authored
fix: mount point of the package (#707)
1 parent 3168ba8 commit 2caca26

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addon/routes/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import { getOwner } from "@ember/application";
12
import Route from "@ember/routing/route";
23
import { service } from "@ember/service";
34

45
export default class IndexRoute extends Route {
56
@service hostRouter;
67

78
beforeModel() {
8-
this.hostRouter.transitionTo("ember-emeis.users");
9+
const owner = getOwner(this);
10+
const mountPoint = owner.mountPoint;
11+
this.hostRouter.transitionTo(`${mountPoint}.users`);
912
}
1013
}

0 commit comments

Comments
 (0)