mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Set referer if referer is /login
This commit is contained in:
parent
7d3ecf7567
commit
84aef70803
1 changed files with 4 additions and 0 deletions
|
@ -413,6 +413,10 @@ get "/login" do |env|
|
|||
referer = env.request.headers["referer"]?
|
||||
referer ||= "/feed/subscriptions"
|
||||
|
||||
if referer.ends_with? "/login"
|
||||
referer = "/feed/subscriptions"
|
||||
end
|
||||
|
||||
templated "login"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue