Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthordelia
    • CommentTimeMay 23rd 2008
     
    hi all,
    how can i use this function (modify_current_url) just to remove the part relative to the language of the actual url (in es/controller/action/1 remove es/ ) and to add another language descriptor (en/controller/action/1 ) ??

    thanks
    •  
      CommentAuthorbermi
    • CommentTimeMay 24th 2008
     

    The Editam layout helper might help you on this.

    • CommentAuthordelia
    • CommentTimeMay 24th 2008
     
    hi bermi, thank you for answering. It works ok, except for a URL of the form /es/controller/view/1 (with the extra parameter id). It returns the url without the id.....
    •  
      CommentAuthoramir
    • CommentTimeAug 9th 2008
     
    Hi
    I have the same problem, url_for_language_switch in Editam layout helper returns the url without the parameter id. what can i do to fix it?
    • CommentAuthorinsanet
    • CommentTimeAug 9th 2008
     
    same problem for me.
    • CommentAuthorKaste
    • CommentTimeAug 9th 2008
     

    this is already solved in the branches with the new router I wrote. Until then I think you have to pass the id as an arg. modify_url just doesn't work as expected in the trunk.

Add your comments
    Username Password
  • Format comments as