Issue Bug Closed

#103954import map prefix-based URL calculation misses to join by /

Benjamin Franzke 05/30/24, 06:38 updated 08/12/25, 14:35

Description

Import map resolution without a cache-bust suffix (note: this is
currently not used in TYPO3 backend as we do not have cache-bust
prefixes yet), missed to join a previously splitted path-string
via slashes, when a prefix based import-declaration was used to
calculate the resulting URL of an import (usecase: calculate the
URL of a bare module specifier for usage in a `<script src>`<br />tag, where bare module specifiers (`@typo3/backend/foo.js`) can<br />not be used.</p> <p>Note that this bug is not exposed when the import-map paths are<br />recursively pre-calculated in `computeImportMaps()`, only if<br />package versions are hashed into public resource paths. That<br />means this fix is a preparation for #98481.</p></script>

Reviews 2