The intercept redirects is just a debug tool - you'd never have a use for it in production. When developing, it's just useful to see the exact URL that the form is redirecting you to with a choice to follow the redirect (a little more flexibility). It also allows you to hit refresh to resubmit the form - a handy little bit.
But, perhaps the language should be enhanced a little bit? I don't see an issue with that, since it's all debug code anyways... Ryan Weaver Lead Programmer - iostudio - Nashville, TN http://www.iostudio.com http://www.thatsquality.com Twitter: @weaverryan On Mon, Jan 3, 2011 at 12:46 PM, rouffj <[email protected]> wrote: > Indeed, in my config_dev.php i had "intercept-redirects" with true. So > i turned it fo false, and now it works ! > > Could you give me a little example where intercept redirect is useful > with the web profiler. I want to fully understand this feature. > > Thanks guys, > > You rocks ! > > On Jan 3, 6:07 pm, Lukas Kahwe Smith <[email protected]> wrote: > > On 03.01.2011, at 09:46, rouffj wrote: > > > > > > > > > > > > > > > > > > > > > Hi everyone, > > > > > I just started to develop with symfony2 and i had a little issue with > > > the redirect method. When i use it i'm not redirected to the new URL. > > > For instance when i put in an action this line : > > > > > $this->redirect($this->generateUrl('hello', array('name' => > > > 'Lucas'))); > > > > > There is no redirection. When i try to put an echo in front of this > > > line i have the message "Redirecting to <a>URL</a>". When i build the > > > response myself with Location header and the 200 status code, it > > > works. > > > > > Anyone have any idea why this issue occured ? > > > > > Symfony2 Version used : master (763ef35d0e9c627dbf22). > > > > What you are seeing is a feature in development mode. > > Check your config_dev.yml .. intercept_redirects is set to true there. > > > > regards, > > Lukas Kahwe Smith > > [email protected] > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
