better route handling for the lang switch navigation