With iron:router I’m basically just trying to make a global onBeforeAction that redirects to index. So I don’t want a notFoundTemplate to render but rather a full redirect, but I can’t seem to get it to work. What I’m doing now is:
var goToSplash = function() {
Router.go('index');
this.next();
};
Router.onBeforeAction(goToSplash);
I’m assuming that it’s because of the this.next()
but removing that yields the classic error of:
Route dispatch never rendered. Did you forget to call this.next() in an onBeforeAction?
Any tips?