Review 14.3 Merged

96024[BUGFIX] Apply slug postModifiers when rebuilding sub page slugs

Benni Mack CR +2 V +2 Normal +102 −2 updated 09/23/26, 22:40

Commit message

When the slug of a page changes, EXT:redirects rebuilds the
slugs of all sub pages. It did so by string surgery only:
cut off the old parent slug, prepend the new one. The
"postModifiers" of the slug field were never called, although
every other way to a slug - DataHandler and the "recalculate"
button in the backend - runs them through SlugHelper.

Extensions that build slugs from something else than the
parent slug and the own segment therefore ended up with sub
page slugs they would never have generated themselves.

The modifier loop is moved into SlugHelper::applyPostModifiers()
and is now called by SlugService as well. Without configured
postModifiers nothing changes.

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 1

Files 4

Review log 34

  1. Benni Mack commented on patch set 1 09/23/26, 22:16

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/23/26, 22:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109118

  3. Benni Mack voted on patch set 1 CR +2 V +2 09/23/26, 22:40

  4. Benni Mack merged patch set 2 09/23/26, 22:40