Skip to content

Commit 07a0cc8

Browse files
fix: Recursively look for route params for private CFS (#5411)
1 parent 695ceee commit 07a0cc8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/routes/public/cfs/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ export default class IndexRoute extends Route {
1111
return this.l10n.t('Call for Speakers');
1212
}
1313

14+
getHash(routeInfo) {
15+
if (!routeInfo) {return null}
16+
const hash = (routeInfo.params['public.cfs'] || routeInfo.params)?.speaker_call_hash;
17+
if (hash) {return hash}
18+
return this.getHash(routeInfo.parent);
19+
}
20+
1421
async beforeModel(transition) {
1522
// We don't want to process or transition in fastboot mode
1623
// Since this is only an intermediate page
1724
if (this.fastboot.isFastBoot) {return}
18-
const hash = transition.to.params['public.cfs'] ? transition.to.params['public.cfs'].speaker_call_hash : null;
25+
const hash = this.getHash(transition.to);
1926
const eventDetails = this.modelFor('public');
2027
const speakersCall = await eventDetails.get('speakersCall');
2128
/*

0 commit comments

Comments
 (0)