FIX: redirect to wrong URL after account creation on subfolder install
This commit is contained in:
parent
82dcc5cbfa
commit
9bf4333491
|
@ -675,7 +675,7 @@ class UsersController < ApplicationController
|
||||||
if SiteSetting.enable_sso_provider && payload = cookies.delete(:sso_payload)
|
if SiteSetting.enable_sso_provider && payload = cookies.delete(:sso_payload)
|
||||||
return redirect_to(session_sso_provider_url + "?" + payload)
|
return redirect_to(session_sso_provider_url + "?" + payload)
|
||||||
else
|
else
|
||||||
return redirect_to("/")
|
return redirect_to(path('/'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue