symfony/symfony — Issue #2626: Only auto-redirect safe requests
Author: kriswallsmith
Created: 2011-11-11 20:31:44+00:00
State: open
Labels: Enhancement, Routing

Given a route exists with pattern `/foo/` that requires a `POST` method and a `POST /foo` request is received, the router will redirect to `GET /foo/`, which does not match the same route. I suggest we only redirect to add a trailing slash when the route accepts `GET` requests.