Skip to content

Commit

Permalink
fix: mount point of the package (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
MitanOmar authored Aug 17, 2023
1 parent 3168ba8 commit 2caca26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/routes/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { getOwner } from "@ember/application";
import Route from "@ember/routing/route";
import { service } from "@ember/service";

export default class IndexRoute extends Route {
@service hostRouter;

beforeModel() {
this.hostRouter.transitionTo("ember-emeis.users");
const owner = getOwner(this);
const mountPoint = owner.mountPoint;
this.hostRouter.transitionTo(`${mountPoint}.users`);
}
}

0 comments on commit 2caca26

Please sign in to comment.