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] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
