Feature #29972

Configurable Redirects

Added by Bastian Waidelich almost 2 years ago. Updated 7 months ago.

Status:Accepted Start date:2011-09-18
Priority:Should have Due date:
Assignee:Bastian Waidelich % Done:

0%

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

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

History

Updated by Bastian Waidelich over 1 year 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.

Updated by Bastian Waidelich over 1 year ago

  • Target version deleted (1.0.0)

Updated by Bastian Waidelich over 1 year ago

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

Updated by Bastian Waidelich 7 months 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

Also available in: Atom PDF