symfony-cmf / routing-auto-bundle

Adding automatic route generating on top of the symfony cmf routing
https://cmf.symfony.com
14 stars 29 forks source link

Support for setting the redirect content as a content document #163

Open dantleech opened 9 years ago

dantleech commented 9 years ago

Allow configuring the redirect target to be set as the content document instead of the route.

See: https://github.com/symfony-cmf/RoutingAuto/issues/43 Depends: https://github.com/symfony-cmf/RoutingAuto/pull/56

Discussion: Redirecting to the content is certainly better -- otherwise there is just an ever growing chain of auto routes which must be resolved (e.g. rename something 50 times, then there is a maximum of 50 routes which must be resolved).

So I would say that in 2.0 the content document should be the redirect target by default. But do we want to make this the ONLY choice? To what extent does it make sense to redirect to another route?

TODO: Need to add configuration for this.

wouterj commented 9 years ago

The PR on the component is nowmerged, @dantleech can you please finish this PR?

dbu commented 7 years ago

@dantleech is this still relevant or should we drop it?