Since updating WPML yesterday to v4.9.0, I’m seeing a redirect issue that breaks the Bricks editor only for the default language when the option “Use directory for default language” is enabled.
Setup
Default language: Spanish (es)
Secondary language: English (en)
WPML setting enabled: Use directory for default language
Builder: Bricks (using ?bricks=run/)
Issue
When I open a Spanish (default language) URL with Bricks editor:
hidden link
it redirects to:
hidden link
That extra /en/ prefix makes the builder not loading correctly showing a 404 error
What works
English URLs work fine (no wrong redirect).
If I disable “Use directory for default language”, the Spanish URL loads the Bricks builder correctly.
Expected behavior
The Spanish builder URL should load without being redirected to an URL containing /en/es/.
Request
Could you confirm if this is a known issue in WPML 4.9.0, and advise on the correct fix or workaround?
He podido replicar el problema, aparentemente si importo los settings del theme del sitio con problemas al nuevo, el problema reaparece, si restauro a los settings por defecto el problema desaparece
"builderLocale": "en_US", -> esto en el JSON es lo que esta generando la incompatibilidad, probablemente debido a que "ES" es el idioma predeterminado del sitio el cual no es EN y como EN es un idioma que tambien esta activo quizas ahi es donde se esta formando el lio
Seteando la opción a SITE DEFAULT, soluciona el problema