Skip to content

Error: no route on the client or the server for url ... /reset-password/... #11

Description

@brylie

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." 
http://localhost:3000/reset-password/jQrANVL_hEO322VhIQwAhfah4d3d8JU1gPNVv7TJut9

I have the following configuration:

// in /client/routes/_config.js
var anonymousRoutes = [
  'login',
  'atChangePwd',
  'atEnrollAccount',
  'atForgotPwd',
  'atResetPwd',
  'atSignIn',
  'atSignUp',
  'atVerifyEmail',
  'atresendVerificationEmail'
];

// User login required for all areas of site
Router.plugin('ensureSignedIn', {except: anonymousRoutes});
// in /lib/accounts.js
AccountsTemplates.configure({
  // Behavior
  enablePasswordChange: true,
  showForgotPasswordLink: true
});

// Configure AccountsTemplates routes
AccountsTemplates.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions