Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to render to not found templte in meteor js if the requested path is not there

I have a meteor website
I want to render to the not found template if user enters the url which is not the part of my website or I have not configured.

I have used flow router for the routing process.

Please help me out. how to do that
I am just a newbie in meteorjs

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

you should try this

FlowRouter.route('/*',{
      name: "routename",
      action: function () {
       BlazeLayout.render('layout', {
           main: "templatename"
       });          
    }
})
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading