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 am getting an error that says 'no route on the client or server' when viewing a password reset route:
Oops, looks like there's no route on the client or the server for url: "http://localhost:3000/reset-password/l3GZh7Y25xEHyExEA4HdHW4xSHNoCoErhuHpKZYMTSt."
// in /client/routes/_config.jsvaranonymousRoutes=['login','atChangePwd','atEnrollAccount','atForgotPwd','atResetPwd','atSignIn','atSignUp','atVerifyEmail','atresendVerificationEmail'];// User login required for all areas of siteRouter.plugin('ensureSignedIn',{except: anonymousRoutes});
// in /lib/accounts.jsAccountsTemplates.configure({// BehaviorenablePasswordChange: true,showForgotPasswordLink: true});// Configure AccountsTemplates routesAccountsTemplates.configureRoute('signIn');AccountsTemplates.configureRoute('signUp');AccountsTemplates.configureRoute('forgotPwd');AccountsTemplates.configureRoute('changePwd');AccountsTemplates.configureRoute('resetPwd');AccountsTemplates.configureRoute('verifyEmail');
I am using iron-router, and have installed useraccounts:iron-router package.
The text was updated successfully, but these errors were encountered:
brylie
changed the title
no route on the client or the server for url ... /reset-password/...
Error: no route on the client or the server for url ... /reset-password/...
Jan 21, 2016
Hey, I looked through the code and didn't notice anything. Looking at some code I'd written, here is a suggestion:
if (Meteor.isClient) {
// Force login on routes above and listed here.
var publicRoutes = _.pluck(AccountsTemplates.routes, 'name')
.concat(['landing','home','privacy-policy','terms-of-service','enrollExpert']);
Router.plugin('ensureSignedIn', { except: publicRoutes });
}
If that doesn't work, try removing the ensureSignIn plugin and see if that's the reason the route won't work.
The problem seems to have resolved itself somehow, and I am not sure what exactly changed to make it work. In other words, I still have pretty much the same code, but I moved some AccountsTemplates email configuration variables to a different file.
I am getting an error that says 'no route on the client or server' when viewing a password reset route:
I have the following configuration:
I am using iron-router, and have installed useraccounts:iron-router package.
The text was updated successfully, but these errors were encountered: