Why does the WPML language switcher point to the old domain after migration?

The language switcher can retain an old domain when multilingual domain settings, cached URLs, or migration data were not updated. Confirm the WordPress Address, Site Address, and WPML language URL configuration on the destination before running a database replacement.
Use WPML’s troubleshooting action for updating the language switcher domain after a move. Then perform a serialization-aware search and replace for remaining old URLs, including HTTPS and www variants. Clear WPML, page, object, CDN, and browser caches.
Check every language on posts, archives, menus, and the home page. Separate language domains also require correct DNS and certificates. Do not run a plain SQL replacement over serialized WordPress data. Keep redirects from old domains in place while search engines and users move to the new addresses.