mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-28 00:39:26 -05:00
Fix infinite redirect for '/preferences'
This commit is contained in:
parent
4f3d8a8ef6
commit
4c3e865ea2
@ -699,7 +699,7 @@ get "/preferences" do |env|
|
||||
user = user.as(User)
|
||||
templated "preferences"
|
||||
else
|
||||
env.redirect referer
|
||||
env.redirect "/"
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user