From 718ebbfbfe068dbb6a4e33f30e6aa460dd5796a9 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 20 Aug 2018 14:16:05 -0400 Subject: [PATCH] FIX: callback url on subfolder installs --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index 7a98a66..1989f8c 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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