[SOLVED] Iron Router Path "/settings/account" won't load

Hi!

I named a route path “settings/account” and it takes forever to load. I wonder what the problem is?

Here’s my code:

Router.route('/settings/account' {
   name: 'settingsAccount',
   controller: 'SettingsController',
   action: 'account',
   where: 'client'
});

And my controller code:

SettingsController = RouteController.extend({
  layoutTemplate: 'MainLayout',
  main: function () {
     this.render('Settings');
  },
  account: function () {
     this.render('SettingsAccount');
  }
});

It takes forever to load ‘settings/account’ but not ‘settings/’. Can anyone please help? Thanks!

1 Like

Are you subscribing to a collection anywhere in your router?

Nope, I created the route for the sake of testing.

So, it seems like IR doesn’t allow route like this:

/settings/account

IR allows routes like this:

/settings/:_id/acccount

So, to validate this, I created another app called HelloWorld with two routes named:

/hello/world
/hello/:_id/world

and both worked.

[SOLVED] I removed loneleeandroo:polymerize and everything got solved!