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


#1

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!


#2

Are you subscribing to a collection anywhere in your router?


#3

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


#4

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.


#5

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