From f337d59ed9a1016e58cf021e86febad65cf7047c Mon Sep 17 00:00:00 2001 From: Jeff Wong Date: Sat, 8 May 2021 14:08:12 -1000 Subject: [PATCH] FIX: access to styleguide in subfolder install (#12995) --- plugins/styleguide/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/styleguide/plugin.rb b/plugins/styleguide/plugin.rb index 24fe4266d66..4c3244b1f67 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