diff --git a/www/pages/404.html b/www/pages/404.html new file mode 100644 index 0000000..9cd8bac --- /dev/null +++ b/www/pages/404.html @@ -0,0 +1,26 @@ + +
+ + + +
+ +
+

This page doesn't exist. How did you get here? Please tell us, it might be a bug. +

+ +
+ +
\ No newline at end of file diff --git a/www/routes.js b/www/routes.js index f44fded..1f625fe 100644 --- a/www/routes.js +++ b/www/routes.js @@ -43,6 +43,7 @@ var routes = [ { path: '/home', name: 'home', + alias: ["/"], on: { pageBeforeIn: function () { // make sure it's not shown right after account setup @@ -420,5 +421,10 @@ var routes = [ } } ] + }, + { + path: '(.*)', + url: './pages/404.html', + name: '404' } ];