You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Moreover, if you wish to customize the template and layout to be used,
you can change them with:
AccountsTemplates.configureRoute('ensureSignedIn', {
template: 'myLogin',
layoutTemplate: 'myLayout',
});
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'}
}
});
The text was updated successfully, but these errors were encountered: