File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
import Route from '@ember/routing/route' ;
2
+ import { inject as service } from '@ember/service' ;
2
3
3
4
export default Route . extend ( {
4
- redirectionParams : null ,
5
+ fastboot : service ( ) ,
6
+ redirectionParams : null ,
5
7
async beforeModel ( transition ) {
8
+ // We don't want to process or transition in fastboot mode
9
+ // Since this is only an intermediate page
10
+ if ( this . fastboot . isFastBoot ) { return }
6
11
const { token } = transition . to . queryParams ;
7
12
const originalEventId = transition . resolvedModels . public . originalId ;
8
13
const payload = {
@@ -31,6 +36,7 @@ export default Route.extend({
31
36
32
37
} ,
33
38
afterModel ( ) {
39
+ if ( this . fastboot . isFastBoot ) { return }
34
40
this . transitionTo ( 'register' , this . redirectionParams ) ;
35
41
}
36
42
} ) ;
You can’t perform that action at this time.
0 commit comments