Feature #89115

Auto-create Redirects on Slug Changes

Added by Susanne Moog 11 days ago. Updated about 2 hours ago.

Status:
Under Review
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2019-09-09
Due date:
% Done:

0%

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

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

History

#1 Updated by Susanne Moog 11 days ago

  • Description updated (diff)

#2 Updated by Gerrit Code Review 11 days ago

  • Status changed from In Progress to Under Review

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

#3 Updated by Susanne Moog 11 days ago

  • Related to Bug #89090: No redirect loop prevention for slugs / redirects added

#4 Updated by Susanne Moog 11 days ago

  • Description updated (diff)

#5 Updated by Gerrit Code Review 8 days ago

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

#6 Updated by Gerrit Code Review 8 days ago

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

#7 Updated by Gerrit Code Review 8 days ago

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

#8 Updated by Gerrit Code Review 8 days ago

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

#9 Updated by Gerrit Code Review 7 days ago

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

#10 Updated by Gerrit Code Review 7 days ago

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

#11 Updated by Gerrit Code Review 7 days ago

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

#12 Updated by Gerrit Code Review 7 days ago

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

#13 Updated by Gerrit Code Review 7 days ago

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

#14 Updated by Gerrit Code Review 7 days ago

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

#15 Updated by Gerrit Code Review 4 days ago

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

#16 Updated by Gerrit Code Review 4 days ago

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

#17 Updated by Gerrit Code Review 3 days ago

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

#18 Updated by Gerrit Code Review 3 days ago

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

#19 Updated by Gerrit Code Review 3 days ago

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

#20 Updated by Gerrit Code Review 3 days ago

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

#21 Updated by Gerrit Code Review 3 days ago

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

#22 Updated by Gerrit Code Review about 2 hours ago

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

Also available in: Atom PDF