Skip to content

Commit

Permalink
Ensure that js_modules URIs are prefixed (#3884)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Sep 25, 2022
1 parent 8ecb73b commit 4bcf011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/template/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def _template_resources(self) -> ResourcesType:
else:
resource_path = url_path(resource)
rtype = 'css' if resource_type == 'css' else 'js'
prefix = f'./{dist_path}' if resource_type == 'js_module' and not state.rel_path else dist_path
prefix = f'./{dist_path}' if resource_type == 'js_modules' and not state.rel_path else dist_path
bundlepath = BUNDLE_DIR / rtype / resource_path.replace('/', os.path.sep)
if bundlepath:
resource_files[rname] = f'{prefix}bundled/{rtype}/{resource_path}'
Expand Down

0 comments on commit 4bcf011

Please sign in to comment.