switch from languages= to language in url