Project

General

Profile

Actions

Bug #103954

open

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

Added by Benjamin Franzke 28 days ago. Updated 28 days ago.

Status:
Under Review
Priority:
Should have
Category:
-
Start date:
2024-05-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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="">`
tag, where bare module specifiers (`@typo3/backend/foo.js`) can
not be used.

Note that this bug is not exposed when the import-map paths are
recursively pre-calculated in `computeImportMaps()`, only if
package versions are hashed into public resource paths. That
means this fix is a preparation for #98481.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Task #98481: Hash package version into public resource pathsUnder ReviewBenjamin Franzke2022-09-30

Actions
Actions

Also available in: Atom PDF