8

I have a Meteor app and I'm using the iron:router package. Both when I deploy to meteor.com and when I'm developing locally, an iron router splash page shows up on the page with the line "Organize your meteor application". How can I get rid of this? I've tried a number of things but nothing seems to have helped.

Thanks

Joshin
  • 299
  • 1
  • 3
  • 14
  • You need to add a route. Follow the instructions on the splash screen or remove iron router using `meteor remove iron:router` – Tarang Apr 17 '15 at 07:12
  • I've made a route on the server in a js file. Is it possible that iron router isn't picking up where it is? – Joshin Apr 17 '15 at 07:16
  • 1
    You need a route on the client too. Iron router is trying to find something to route for `/`. It can't find anything so it displays this notice. – Tarang Apr 17 '15 at 07:17
  • 1
    I think that was the problem. I added a route to a global js file and it no longer shows up. – Joshin Apr 17 '15 at 07:20

2 Answers2

2

Iron Router runs on both the client and the server, so make sure the route is defined in both places, i.e. some not under /client or /server folders. See docs.

FullStack
  • 5,902
  • 4
  • 43
  • 77
1

There is an option which allows you to provide your own "not found" template:

Router.configure({
    notFoundTemplate: "notFound"
});

The default not found template is called __IronRouterNoRoutes__ See

Daniel Flippance
  • 7,734
  • 5
  • 42
  • 55