Review main Merged

93071[BUGFIX] Avoid duplicate slashes in component template paths

Simon Praetorius CR +2 V +2 Easy +7 −3 updated 03/05/26, 08:13

Commit message

If the `templateNamePattern` for components is configured with a
leading or trailing slashes, this can lead to duplicate slashes in
template paths for components. Also, if a component template is located
at the root level, this might also happen because `{path}` is empty
then.

This patch trims duplicate slashes from component paths, which resolves
both issues.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Matthias Vogel +1
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Matthias Vogel +1
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 1

Files 1

Review log 56

  1. Simon Praetorius uploaded patch set 1 03/04/26, 18:55

  2. core-ci voted on patch set 1 V +1 03/04/26, 19:20 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/97356

  3. Simon Schaufelberger voted on patch set 1 CR +1 V +1 03/04/26, 19:52

  4. Matthias Vogel voted on patch set 1 CR +1 V +1 03/05/26, 08:04

  5. Georg Ringer voted on patch set 1 CR +2 V +2 03/05/26, 08:12

  6. Georg Ringer merged patch set 2 03/05/26, 08:13