mirror of
https://github.com/iv-org/invidious
synced 2024-11-28 05:53:28 +01:00
Set referer if referer is /login
This commit is contained in:
parent
7d3ecf7567
commit
84aef70803
@ -413,6 +413,10 @@ get "/login" do |env|
|
|||||||
referer = env.request.headers["referer"]?
|
referer = env.request.headers["referer"]?
|
||||||
referer ||= "/feed/subscriptions"
|
referer ||= "/feed/subscriptions"
|
||||||
|
|
||||||
|
if referer.ends_with? "/login"
|
||||||
|
referer = "/feed/subscriptions"
|
||||||
|
end
|
||||||
|
|
||||||
templated "login"
|
templated "login"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user