Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of Iron Router splash page

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

like image 949
Joshin Avatar asked Apr 17 '15 06:04

Joshin


2 Answers

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.

like image 79
FullStack Avatar answered Oct 06 '22 00:10

FullStack


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

  • https://github.com/iron-meteor/iron-router/search?utf8=%E2%9C%93&q=notFoundTemplate
  • https://github.com/iron-meteor/iron-router/search?utf8=%E2%9C%93&q=IronRouterNoRoutes
like image 25
Daniel Flippance Avatar answered Oct 06 '22 00:10

Daniel Flippance