Fix blank page/error when using hardware back button, add 404 page just in case
This commit is contained in:
parent
a7a4aee301
commit
ac6ac13ec7
26
www/pages/404.html
Normal file
26
www/pages/404.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||||
|
<div class="page" data-name="404">
|
||||||
|
|
||||||
|
<div class="navbar">
|
||||||
|
<div class="navbar-bg"></div>
|
||||||
|
<div class="navbar-inner">
|
||||||
|
<div class="left">
|
||||||
|
<a href="/" class="link icon-only back hapticbtn">
|
||||||
|
<i class="icon icon-back"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="title">Helena Express</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="page-content">
|
||||||
|
|
||||||
|
<div class="block">
|
||||||
|
<p>This page doesn't exist. How did you get here? Please tell us, it might be a bug.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
@ -43,6 +43,7 @@ var routes = [
|
|||||||
{
|
{
|
||||||
path: '/home',
|
path: '/home',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
|
alias: ["/"],
|
||||||
on: {
|
on: {
|
||||||
pageBeforeIn: function () {
|
pageBeforeIn: function () {
|
||||||
// make sure it's not shown right after account setup
|
// make sure it's not shown right after account setup
|
||||||
@ -420,5 +421,10 @@ var routes = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '(.*)',
|
||||||
|
url: './pages/404.html',
|
||||||
|
name: '404'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user