mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Redirect to homepage on 404.
This commit is contained in:
parent
e09c9ee7a0
commit
0098588904
1 changed files with 9 additions and 0 deletions
|
@ -358,6 +358,15 @@ app = Sammy('#main', function (sam) {
|
|||
});
|
||||
|
||||
|
||||
/**
|
||||
* Errors
|
||||
*/
|
||||
sam.notFound = function(){
|
||||
// Redirect to home page on 404.
|
||||
window.location = '#/';
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Routes
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue