FIX: callback url on subfolder installs

This commit is contained in:
Neil Lalonde 2018-08-20 14:16:05 -04:00
parent 3ce35cb7dd
commit 718ebbfbfe
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class ::OmniAuth::Strategies::Oauth2Basic < ::OmniAuth::Strategies::OAuth2
end
def callback_url
full_host + script_name + callback_path
Discourse.base_url_no_prefix + script_name + callback_path
end
end