client/general: show correct URL in 404 page

This commit is contained in:
rr-
2016-05-21 12:03:31 +02:00
parent e7fe7d3899
commit df5d72d429
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ class HomeController {
registerRoutes() {
page('/', (ctx, next) => { this._indexRoute(); });
page('*', (ctx, next) => { this._notFoundRoute(); });
page('*', (ctx, next) => { this._notFoundRoute(ctx); });
}
_indexRoute() {
@ -21,9 +21,9 @@ class HomeController {
this._homeView.render({});
}
_notFoundRoute() {
_notFoundRoute(ctx) {
topNavController.activate('');
this._notFoundView.render({});
this._notFoundView.render({path: ctx.canonicalPath});
}
}