FIX: access to styleguide in subfolder install (#12995)

FIX: access to styleguide in subfolder install (#12995)

diff --git a/plugins/styleguide/plugin.rb b/plugins/styleguide/plugin.rb
index 24fe426..4c3244b 100644
--- a/plugins/styleguide/plugin.rb
+++ b/plugins/styleguide/plugin.rb
@@ -16,6 +16,6 @@ end
 
 after_initialize do
   register_asset_filter do |type, request, opts|
-    (opts[:path] || '').start_with?('/styleguide')
+    (opts[:path] || '').start_with?("#{Discourse.base_path}/styleguide")
   end
 end

GitHub sha: f337d59e

This commit appears in #12995 which was approved by CvX. It was merged by featheredtoast.