mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: redirect to wrong URL after account creation on subfolder install
This commit is contained in:
@ -675,7 +675,7 @@ class UsersController < ApplicationController
|
||||
if SiteSetting.enable_sso_provider && payload = cookies.delete(:sso_payload)
|
||||
return redirect_to(session_sso_provider_url + "?" + payload)
|
||||
else
|
||||
return redirect_to("/")
|
||||
return redirect_to(path('/'))
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user