mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Login redirect path was broken in subfolder installs
This commit is contained in:

committed by
Guo Xiang Tan

parent
a35227918f
commit
2097f5330c
@ -644,7 +644,7 @@ class ApplicationController < ActionController::Base
|
|||||||
else
|
else
|
||||||
# save original URL in a cookie (javascript redirects after login in this case)
|
# save original URL in a cookie (javascript redirects after login in this case)
|
||||||
cookies[:destination_url] = destination_url
|
cookies[:destination_url] = destination_url
|
||||||
redirect_to "/login"
|
redirect_to path("/login")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user