Admin Plugin page is blank - Error: There is no route named adminPlugins.index

Fixed! The problem after updating to the latest version was the babble plugin. I’ve disabled it and everything works fine.

6 Likes

This is a correct fix, so thanks to @vinothkannans and @zogstrip for merging it so quickly.

I was surprised by this behaviour too. Previously there was the concept of a route and a resource, but the resource was removed in favor of the { resetNamespace: true } option which makes a lot more sense. However, not every route is considered a new “level”. For example:

this.route('hello', function() {
  this.route('world');
});

In this case, ‘hello’ gets an index, but ‘world’ does not. This makes sense to me, because ‘world’ would probably just be something related to ‘hello’. So the way Ember decides if it should add an index is by whether a route is a new “level” of routes, which is determined by whether it is created with a function as the final argument:

this.route('hello', function() {
  this.route('world', function() {
    // now a new level, gets an index
  });
});

So @vinothkannans’s fix was to add a new function. He explicitly defines index to make it clear what we want, but just having the new level there would have done it anyway.

10 Likes

The fix worked for me, as well! Thanks @vinothkannans !

1 Like

Thank you @vinothkannans it works for me too now.

1 Like