FIX: Login redirect path was broken in subfolder installs

This commit is contained in:
Rafael dos Santos Silva 2018-03-07 14:43:54 -03:00 committed by Guo Xiang Tan
parent a35227918f
commit 2097f5330c

View File

@ -644,7 +644,7 @@ class ApplicationController < ActionController::Base
else
# save original URL in a cookie (javascript redirects after login in this case)
cookies[:destination_url] = destination_url
redirect_to "/login"
redirect_to path("/login")
end
end
end