Needs review
Project:
External Script SRI
Version:
1.0.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
10 Aug 2026 at 12:01 UTC
Updated:
10 Aug 2026 at 12:25 UTC
Jump to comment: Most recent
When scanning libraries.yml for external JavaScript URLs, SriConfigurationForm overwrites the collected paths on each loop iteration instead of appending them. Libraries with multiple external JS files only show the last one on the configuration form.
Define a library with more than one external JS file, for example:
floating-ui:
js:
"https://cdn.jsdelivr.net/npm/@floating-ui/core@1.5.0": { external: true }
"https://cdn.jsdelivr.net/npm/@floating-ui/dom@1.5.3": { external: true }
Visit /admin/config/system/sri-configuration.
Observe that only one of the two URLs appears for that library.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ben.hamelin