how about:

function link_to_path($text, $uri, $options = array())
{
  $link = link_to($text, $uri, $options);

  return str_replace('%2F', '/', $link);
}

Still kinda hackish, but since you can't selectively deactivate URL
parameter encoding in symfony...

Cheers,

François

2008/6/23 Nicolas CHARLOT <[EMAIL PROTECTED]>:
>
> Hi,
>
> I'm trying to get the url of a route with a param containing slashes
> like "@mypage?slug=foo/bar".
> The genUrl() methode of sfWebController encode the param and return :
> "/mypage/foo%2Fbar" rather than "/mypage/foo/bar".
>
> I found a very bad solution in using a "PLACEHOLDER" in place of the
> param value and replacing it after the generation.
> Another bad pratice is to urldecode the returned url :(
>
> Any better idea ?
>
> Best regards,
> --
> Nicolas CHARLOT
> http://www.isics.fr
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to