Issue Feature Under Review Quiet

#111334Allow overriding auto slug update and auto redirect creation per page

Georg Ringer 11/03/26, 18:13 updated 11/03/26, 18:40

Description

EXT:redirects updates the slugs of sub pages and creates redirects when a page slug
changes. Both behaviours are controlled by the site settings
@redirects.autoUpdateSlugs@ and redirects.autoCreateRedirects, which apply to the
whole site.

There is no way to switch them off (or on) for a single page or a sub tree while the
site setting stays as it is. The PSR-14 event SlugRedirectChangeItemCreatedEvent
already allows listeners to modify the change item, but the item does not carry
these two flags: SlugService reads the site settings itself, after the event, so
a listener cannot influence the outcome.

Typical use cases: a sub tree that is maintained by an import and must keep its
slugs, or a sub tree for which redirects are created by another system.

Reviews 1

History 01