Core owns localized booking destinations and the validated hb_language context. A theme should use supplied URLs/forms rather than guessing a route from the current slug or prepending a language code.
Follow the same application surface
Test the configured Rooms and Booking Pages and Core’s virtual Search/booking routes in both directions. Switching a translated Booking surface should retain that surface when the provider has a safe corresponding route; a normal Page relationship and a virtual application route require different resolution.
Use actual Page assignments and public route helpers. kimorapro_hb_rooms_url() provides the catalogue destination; kimorapro_hb_search_url() provides the supported Search entry. Managed Page helpers follow their assigned Page/permalink and can return no available destination when the Page is unpublished or deliberately unassigned.
Retain valid context, not arbitrary query data
Submit native forms with their supplied language field, dates and guest inputs. Core validates the locale and rechecks financial/availability data; a language parameter is not authorization or a trusted price.
Do not blindly copy the current query string into a switch URL. Confirmation, payment, nonce and token-bearing requests are intentionally locked. Forwarding them can leak access data or falsely imply the historical booking language can be changed by navigation.
Diagnose a return to the default language
- Inspect the form’s actual action URL and language input, not just translated labels.
- Check the current provider, Page/menu relationships and Core route availability.
- Review theme custom action URLs and any caching of language-specific forms.
- Retest a normal Page and a virtual route separately with synthetic data.
A translated heading alone does not prove routing is language-aware. Do not fix a route by changing saved booking locale, adding a provider dependency to the theme or weakening signed URL checks.
Existing booking/payment returns continue to use authorized access and their saved context. See navigation API and route troubleshooting.
