parent
8577c38a9f
commit
0c8fc4db6c
4 changed files with 23 additions and 0 deletions
11
app/pods/not-found/route.js
Normal file
11
app/pods/not-found/route.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
redirect: function() {
|
||||
let url = this.router.location.formatURL('/not-found');
|
||||
|
||||
if (window.location.pathname !== url) {
|
||||
this.transitionTo('/not-found');
|
||||
}
|
||||
}
|
||||
});
|
3
app/pods/not-found/template.hbs
Normal file
3
app/pods/not-found/template.hbs
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{#x-application invalidateSession="invalidateSession"}}
|
||||
<h1>404 Not Found</h1>
|
||||
{{/x-application}}
|
Reference in a new issue