-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I seem to have a problem. I switched to layoutTemplates in Iron Router and the ensureSignedIn-Plugin started to misbehave (it took me some time to realise as I was signed in for a few weeks). When I try to access /assign the layout template is displayed for a short moment, then he obviously notices, that I'm not logged in anymore – but instead of redirecting me to a login page, he just serves the yieldTemplates. If I switch back to "template: 'home'" for this route (i.e. without a layoutTemplate) everything's fine.
Router.plugin('ensureSignedIn', {
except:['root', 'atSignIn', 'atSignUp', 'atForgotPassword', 'atResetPwd']
});
Router.route('assignRoute', {
path: '/assign',
layoutTemplate: 'mainTemplate',
loadingTemplate: 'loading',
yieldTemplates: {
'home': {to: 'main'},
'filterMenu': {to: 'menu'}
}
});