...
remove the lang segment from the uri->segments array
corrected alt_site_url href code
$ was missing