Set referer if referer is /login

pull/3/head
Omar Roth 7 years ago
parent 7d3ecf7567
commit 84aef70803

@ -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…
Cancel
Save