FIX: Use exact patht to ensure we always redirect with the right format.

This commit is contained in:
Guo Xiang Tan 2017-09-27 11:55:06 +08:00
parent 409cd72f5b
commit 2568312475
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,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 "/login"
end
end
end