In this case that functionality is broken right from the start. There should be a visible lang switch on a website. All other solutions are too technical, and/or have unexpected consequences, and/or lack flexibility.
As a user, what I actually miss is the ability to configure language preferences in the browser based on CCTLD.