Hello WIX team,
I'm using "if (wixWindow.rendering.renderCycle === 1)" to run part of my code once.
To upload some language specific strings from backend collection, I'm checking which language is currently set in URL with the following:
let language = wixLocation.query["lan"]; // while URL is https://myuser.wixsite.com/mysite?lan=en
It works for all the pages, but surprisingly not for home page.
At rendering cycle === 1, I see that "language" is undefined in case it is backend rendering cycle. Once browser "onReady" starts running, I get the proper value ("en") in "language" variable.
Is there some known limitation / bug for home page with rendering cycle running on backend?
BTW, I tried also wixLocation.url. At home page, during backend rendering (cycle === 1) it returns
while on browser rendering cycle it returns the expected url: