Create URL to language switcher anchor with langhandler

You are viewing revision #3 of this wiki article.
This is the latest version of this article.
You may want to see the changes made in this revision.

« previous (#2)

This topic is related with langhandler extension

I'm actually find this solution and this is work in all cases and any page:

I just pushed the lang parameter to $_GET array and this is work, So please if you have better solution or any comment please share it with us.

Input:

$_GET['lang'] = 'en';
$url = $this->createUrl($this->id.'/'.$this->action->id,$_GET);

Output: ~~~ [html] English ~~~