[enh] Redirect to homepage on 404.

This commit is contained in:
opi 2014-06-11 18:22:33 +02:00
parent e09c9ee7a0
commit 0098588904

View file

@ -358,6 +358,15 @@ app = Sammy('#main', function (sam) {
});
/**
* Errors
*/
sam.notFound = function(){
// Redirect to home page on 404.
window.location = '#/';
};
/**
* Routes
*