Hello Felix,
Try url_for('@redirect', arry("url",'.urlencode('http://symfony-project.org
')))
2011/1/29 Felix E. Klee <[email protected]>
> I set up a redirect-page for a Symfony 1.x project.
>
> Rule:
>
> redirect:
> url: /:sf_culture/redirect/:url
> param: { module: main, action: redirect }
>
> Then, to create the URL of the redirect page, I tried something like:
>
> url_for('@redirect?url='.urlencode('http://symfony-project.org'))
>
> This creates:
>
> /redirect/http%3A%2F%2Fsymfony-project.org
>
> The problem:
>
> When visiting the above link, the server responds with a 404:
>
> The requested URL
> /frontend_dev.php/es_ES/redirect/http://symfony-project.org was not
> found on this server.
>
> I now retreated to using a query string instead:
>
> /redirect?url=http%3A%2F%2Fsymfony-project.org
>
> This works fine. But is there another solution?
>
> --
> 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 users" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
--
Boa Sorte e a Paz do Senhor,
*Good Luck and Peace of the Lord*
[:>} Alan Cândido ><>
Analista de Pesquisa e Desenvolvimento
Analyst Research and Development
Acompanhe dicas e outras informações em
Follow tips and other information on (only portuguese)
http://paradesenvolvedores.blogspot.com/
http://albb.objectis.net/
--
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 users" 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-users?hl=en