[mod] Redirect after logout if r URI argument exists

This commit is contained in:
tituspijean 2018-09-15 09:25:48 +02:00
parent 669feba0e4
commit 11d0e0689a

View file

@ -889,8 +889,12 @@ function logout()
flash("info", t("logged_out"))
end
-- Redirect to portal anyway
-- Redirect with the `r` URI argument if it exists or redirect to portal
if args.r then
return redirect(ngx.decode_base64(args.r))
else
return redirect(conf.portal_url)
end
end