Project

General

Profile

Actions

Bug #103954

open

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

Added by Benjamin Franzke 23 days ago. Updated 22 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 #1

Updated by Gerrit Code Review 23 days ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84447

Actions #2

Updated by Benjamin Franzke 23 days ago

  • Related to Task #98481: Hash package version into public resource paths added
Actions #3

Updated by Gerrit Code Review 22 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84447

Actions

Also available in: Atom PDF