2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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
register_asset_filter do |type, request, opts|
(opts[:path] || '').start_with?('/styleguide')
(opts[:path] || '').start_with?("#{Discourse.base_path}/styleguide")
end
end