Proposed fix for random langauge appearing to be randomly selected ?

Please review this would ensure that the url would have a language_id in it.