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

This commit is contained in:
Jeff Wong 2021-05-08 14:08:12 -10:00 committed by GitHub
parent 7f90d0a7bb
commit f337d59ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,6 @@ end
after_initialize do after_initialize do
register_asset_filter do |type, request, opts| register_asset_filter do |type, request, opts|
(opts[:path] || '').start_with?('/styleguide') (opts[:path] || '').start_with?("#{Discourse.base_path}/styleguide")
end end
end end