Feature #29972

Configurable Redirects

Added by Bastian Waidelich almost 4 years ago. Updated almost 2 years ago.

Status:Under Review Start date:2011-09-18
Priority:Should have Due date:
Assigned To:Tim Kandel % Done:

0%

Category:MVC - Routing
Target version:-
PHP Version: Complexity:
Has patch:No

Description

We need a new Entity "Redirect" (in MVC/Web/Routing/Redirect) with the properties sourceUri, destinationUri, hasMoved statusCode and possibly counter and host.
Before a request is matched to package, controller and action, the router should check if a redirect is configured and return the respective redirect headers if that's the case.


Related issues

related to TYPO3.Flow - Feature #8736: Implement generic Identity RoutePartHandler Resolved
related to TYPO3.Flow - Feature #37405: When changing a property wich is used in routing the Link... Under Review 2012-05-22
related to Base Distribution - Task #48291: Redirect management for moved pages Accepted 2013-05-16

Associated revisions

Revision 2b702b0f
Added by Tim Kandel almost 2 years ago

[FEATURE] Add tagging to router cache

This adjusts the RouterCachingService to tag every Routing cache entry
with any UUID the routeValues/matchResult contain.

This will make it possible to flush caches only for affected entities.

Change-Id: I917524542b4051a4c29792eeed330a793c47e677
Releases: master
Related: #29972

History

#1 Updated by Bastian Waidelich almost 4 years ago

Additional idea:
ObjectPathMappings can be marked obsolet (triggered when an affected object is changed for instance)
Whenever the IdentityRoutePart comes across an obsolete mapping while resolving an URI, the path segment will be recreated and - if it's different to the one in the repository - a redirect is created.
If an obsolete mapping is found during matching of an URI, the mapping is removed and a redirect with status "gone" created.

#2 Updated by Bastian Waidelich almost 4 years ago

  • Target version deleted (1.0.0)

#3 Updated by Bastian Waidelich over 3 years ago

  • Category changed from Object to MVC - Routing
  • Has patch set to No

#4 Updated by Bastian Waidelich over 2 years ago

Bastian Waidelich wrote:

ObjectPathMappings can be marked obsolet (triggered when an affected object is changed for instance)

For that we could introduce some new annotation that triggers an AOP aspect which updates related ObjectPathMapping records whenever all or specific properties of an object change

#5 Updated by Gerrit Code Review almost 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24223

#6 Updated by Tim Kandel almost 2 years ago

  • Assigned To changed from Bastian Waidelich to Tim Kandel

#7 Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24223

Also available in: Atom PDF