From a9ef931856e5e901eaacd7188206dba2db6f2929 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 4 Feb 2018 19:42:42 -0600 Subject: [PATCH] Fix error handling --- src/invidious.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious.cr b/src/invidious.cr index e103903c..b23dfe5b 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -242,12 +242,12 @@ get "/search" do |env| templated "search" end -error 404 do |env| - templated "index" +get "/:path" do |env| + env.redirect "/" end error 500 do |env| - templated "index" + "Error 500" end public_folder "assets"