diff --git a/app/routes/public/role-invites.js b/app/routes/public/role-invites.js index 9f6539bb82b..b264399e23f 100644 --- a/app/routes/public/role-invites.js +++ b/app/routes/public/role-invites.js @@ -1,8 +1,13 @@ import Route from '@ember/routing/route'; +import { inject as service } from '@ember/service'; export default Route.extend({ - redirectionParams: null, + fastboot : service(), + redirectionParams : null, async beforeModel(transition) { + // We don't want to process or transition in fastboot mode + // Since this is only an intermediate page + if (this.fastboot.isFastBoot) {return} const { token } = transition.to.queryParams; const originalEventId = transition.resolvedModels.public.originalId; const payload = { @@ -31,6 +36,7 @@ export default Route.extend({ }, afterModel() { + if (this.fastboot.isFastBoot) {return} this.transitionTo('register', this.redirectionParams); } });