Feature #89115

Auto-create Redirects on Slug Changes

Added by Susanne Moog 2 months ago. Updated about 2 months ago.

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

100%

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
Related to TYPO3 Core - Task #89301: Streamline automatic slug & redirects handling Accepted 2019-09-29

Associated revisions

Revision c8d49a19 (diff)
Added by Frank Naegler about 2 months ago

[FEATURE] Auto slug update and redirect creation on slug change

If EXT:redirects is installed and a slug is updated by a backend user,
a redirect from the old URL to the new URL will be created.
All sub pages are checked too and the slugs will be updated.

Resolves: #89115
Releases: master
Change-Id: Id0b09cb22681aa6b2704b4f7cbc47d8b747e56d4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61613
Tested-by: TYPO3com <>
Tested-by: Andreas Fernandez <>
Tested-by: Oliver Hader <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Oliver Hader <>

History

#1 Updated by Susanne Moog 2 months ago

  • Description updated (diff)

#2 Updated by Gerrit Code Review 2 months 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 2 months ago

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

#4 Updated by Susanne Moog 2 months ago

  • Description updated (diff)

#5 Updated by Gerrit Code Review 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 2 months 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 months 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

#23 Updated by Gerrit Code Review about 2 months ago

Patch set 26 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

#24 Updated by Gerrit Code Review about 2 months ago

Patch set 27 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

#25 Updated by Gerrit Code Review about 2 months ago

Patch set 28 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

#26 Updated by Gerrit Code Review about 2 months ago

Patch set 29 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

#27 Updated by Gerrit Code Review about 2 months ago

Patch set 30 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

#28 Updated by Gerrit Code Review about 2 months ago

Patch set 31 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

#29 Updated by Gerrit Code Review about 2 months ago

Patch set 32 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

#30 Updated by Gerrit Code Review about 2 months ago

Patch set 33 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

#31 Updated by Gerrit Code Review about 2 months ago

Patch set 34 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

#32 Updated by Gerrit Code Review about 2 months ago

Patch set 35 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

#33 Updated by Gerrit Code Review about 2 months ago

Patch set 36 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

#34 Updated by Gerrit Code Review about 2 months ago

Patch set 37 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

#35 Updated by Gerrit Code Review about 2 months ago

Patch set 38 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

#36 Updated by Gerrit Code Review about 2 months ago

Patch set 39 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

#37 Updated by Gerrit Code Review about 2 months ago

Patch set 40 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

#38 Updated by Gerrit Code Review about 2 months ago

Patch set 41 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

#39 Updated by Gerrit Code Review about 2 months ago

Patch set 42 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

#40 Updated by Gerrit Code Review about 2 months ago

Patch set 43 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

#41 Updated by Gerrit Code Review about 2 months ago

Patch set 44 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

#42 Updated by Gerrit Code Review about 2 months ago

Patch set 45 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

#43 Updated by Gerrit Code Review about 2 months ago

Patch set 46 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

#44 Updated by Gerrit Code Review about 2 months ago

Patch set 47 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

#45 Updated by Gerrit Code Review about 2 months ago

Patch set 48 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

#46 Updated by Gerrit Code Review about 2 months ago

Patch set 49 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

#47 Updated by Frank Naegler about 2 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#48 Updated by Oliver Hader about 2 months ago

  • Related to Task #89301: Streamline automatic slug & redirects handling added

#49 Updated by Oliver Hader about 2 months ago

  • Category set to Link Handling, Site Handling & Routing

#50 Updated by Oliver Hader about 2 months ago

  • Target version set to Candidate for Major Version

Also available in: Atom PDF