iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 414 forks source link

404 page rendering different page? #1578

Closed scheung38 closed 7 years ago

scheung38 commented 7 years ago

I am expecting this 404 not found page after adding the 404.html in my project/client/template/404.html:

http://bootsnipp.com/snippets/featured/simple-404-not-found-page

<template name="notFound">
    <div class="row">
        <div class="col-md-12">
            <div class="error-template">
                <h1>
                    Oops!</h1>
                <h2>
                    404 Not Found</h2>
                <div class="error-details">
                    Sorry, an error has occured, Requested page not found!
                </div>
                <div class="error-actions">
                    <a href="http://www.jquery2dotnet.com" class="btn btn-primary btn-lg"><span
                            class="glyphicon glyphicon-home"></span>
                        Take Me Home </a><a href="http://www.jquery2dotnet.com" class="btn btn-default btn-lg"><span
                        class="glyphicon glyphicon-envelope"></span> Contact Support </a>
                </div>
            </div>
        </div>
    </div>
</template>

But instead I see this iron: router 404?

screen shot 2017-04-14 at 16 21 53
chrisbutler commented 7 years ago

have you created any routes?