mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix infinite redirect for '/preferences'
This commit is contained in:
parent
4f3d8a8ef6
commit
4c3e865ea2
1 changed files with 1 additions and 1 deletions
|
@ -699,7 +699,7 @@ get "/preferences" do |env|
|
||||||
user = user.as(User)
|
user = user.as(User)
|
||||||
templated "preferences"
|
templated "preferences"
|
||||||
else
|
else
|
||||||
env.redirect referer
|
env.redirect "/"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue