From e3564d12a124a6deeb2edeca682c3cf4a74c6a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 16 Nov 2016 17:08:49 +0100 Subject: [PATCH] fix(404): fixed 404 page --- pkg/api/api.go | 1 + public/app/partials/error.html | 15 ++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index ed73f2dc76d..4fa28f799b0 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -307,4 +307,5 @@ func Register(r *macaron.Macaron) { InitAppPluginRoutes(r) + r.NotFound(NotFoundHandler) } diff --git a/public/app/partials/error.html b/public/app/partials/error.html index d38f71ac5d8..0401d6d98db 100644 --- a/public/app/partials/error.html +++ b/public/app/partials/error.html @@ -1,11 +1,12 @@ + + -
-
+
-
-

Page not found (404)

-
- -
+