This commit is contained in:
Matthew Dillon 2015-11-12 05:54:18 -07:00
parent aeb3206fd9
commit 21e0e6c624
10 changed files with 112 additions and 87 deletions

View file

@ -1,8 +1,10 @@
import Ember from 'ember';
export default Ember.Route.extend({
const { Route } = Ember;
export default Route.extend({
redirect: function() {
let url = this.router.location.formatURL('/not-found');
const url = this.router.location.formatURL('/not-found');
if (window.location.pathname !== url) {
this.transitionTo('/not-found');