Project

General

Profile

Actions

Feature #89115

closed

Auto-create Redirects on Slug Changes

Added by Susanne Moog over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Link Handling, Site Handling & Routing
Start date:
2019-09-09
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

[Concept as discussed between Benni/Susi]

When a slug is updated by a user (by manually pressing the button), a redirect from the old URL to the new URL should be created.
After creation of the redirect a notification should be shown to the user. The notification should contain a link to remove the redirect again.

> Update Slug
> Auto-Create Redirect
-> Show Notification ("... created redirect... <Remove redirect>").

Prerequisites:

EXT:redirects is installed (Code should live in EXT:redirects)

Advanced use case:
When a user updates a slug of a page that has subpages, all subpage slugs starting with the current slug should also be updated and redirected. This batch operation should also be revertable via the notification.

Additional Info:

  • Redirects should have a defined life time (stop date) - for example 30 days (maybe make it configurable?)
  • Behaviour should have a global enable/disable switch per site
  • If the behaviour is enabled, redirects will be created and slugs updated independent of individual users rights to subpages, as otherwise inconsistent states are produced. If users should not be able to create redirects automatically, the behaviour has to be disabled.
  • User rights are taken into account as the slug updates only happen if someone manually updates the slug of a page (and that only works if he/she has rights to the field)

Related issues 6 (3 open3 closed)

Related to TYPO3 Core - Bug #89090: No redirect loop prevention for slugs / redirectsClosed2019-09-05

Actions
Related to TYPO3 Core - Task #89301: Streamline automatic slug & redirects handlingAccepted2019-09-29

Actions
Related to TYPO3 Core - Bug #91311: Interactive Notification for redirects isn't shown if you change slugsNew2020-05-05

Actions
Related to TYPO3 Core - Bug #95123: Automatically added Redirects do not spawn a Notification any moreClosed2021-09-06

Actions
Related to TYPO3 Core - Bug #95272: Redirect after page slug change ignores TCA defaultsNew2021-09-20

Actions
Related to TYPO3 Core - Bug #93964: Edit page, modify page slug causes HTTP 404 on old page URL. TYPO3\CMS\Redirects\Service\SlugService::rebuildSlugsForSlugChange must force-rebuild redirects cache. Closed2021-04-21

Actions
Actions

Also available in: Atom PDF