Fix 404 page

This commit is contained in:
Zed
2019-10-21 07:59:22 +02:00
parent 4104bfcba9
commit a78eea9dce
7 changed files with 8 additions and 8 deletions

View File

@ -40,11 +40,11 @@ routes:
get "/i/redirect":
let url = decodeUrl(@"url")
if url.len == 0: halt Http404
if url.len == 0: resp Http404
redirect(replaceUrl(url, cookiePrefs()))
error Http404:
resp showError("Page not found", cfg)
resp Http404, showError("Page not found", cfg)
extend unsupported, ""
extend preferences, ""