Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of bad/unknown urls #84

Closed
medied opened this issue Dec 9, 2016 · 4 comments
Closed

Handling of bad/unknown urls #84

medied opened this issue Dec 9, 2016 · 4 comments

Comments

@medied
Copy link
Member

medied commented Dec 9, 2016

What I currently see:

screen shot 2016-12-09 at 11 33 03 am

screen shot 2016-12-09 at 11 33 18 am

@santisiri
Copy link
Member

i think we can implement a 404 template. there must be a ironrouter/meteor common practice for this?

@brylie
Copy link
Contributor

brylie commented Dec 14, 2016

We recently migrated to FlowRouter/Blaze in our main project at work. Here is an example of our global 404 routing rule:

// Define 404 route
FlowRouter.notFound = {
  action: function() {
    BlazeLayout.render('masterLayout', { main: 'notFound' });
  }
};

@brylie
Copy link
Contributor

brylie commented Dec 14, 2016

Prior to that, our IronRouter global configuration looked like this:

Router.configure({
  layoutTemplate: 'masterLayout',
  loadingTemplate: 'loading',
  notFoundTemplate: 'notFound',
  ...

@medied
Copy link
Member Author

medied commented Dec 14, 2016

Thanks @brylie, will start to work on this today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants