From 4c3e865ea23f14f7ab05a3c3e5458be35843bccb Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 6 Aug 2018 19:42:20 -0500 Subject: [PATCH] Fix infinite redirect for '/preferences' --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 6cdfc811..defd3254 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -699,7 +699,7 @@ get "/preferences" do |env| user = user.as(User) templated "preferences" else - env.redirect referer + env.redirect "/" end end