Problem with this, as you point out is that this will prevent switching back to default language. Maybe solution for this is to modify a default lang flag link so that script can detect that a default language flag was clicked. Then, just in that case script wont be adding anything to url.
Tatizo la, kama wewe uhakika ni kwamba hii kuzuia byte nyuma kwa lugha default . Labda hii ni ufumbuzi kwa kurekebisha default lang bendera ya kiungo ili script kwamba inaweza kuchunguza kwamba bendera default lugha clicked . Basi, tu kwamba script kesi kule na kuongeza chochote url .