Defining the Company in Site initializer Client Extension

Hi everyone,

I’m trying to deploy a Site Initializer Client Extension that has to be created in a certain company that isn’t the default virtual host.

I got to define the oauth application headless server in the right virtual instance by defining dxp.lxc.liferay.com.virtualInstanceId and companyId in the CX yaml, but the site is being created in the default instance and couldn’t see any documentation about it. Is there any way I’ve missed to define the instance where the site of a site initializer client extension will be created? I Have tested this in Liferay CE GA 132.
Thank you in advance.

1 Like

This is a known issue in the GA132 release. See LPD-52197.
We have fixed this upstream and in the DXP releases, and it will be fixed in the next public release.

The workaround for your version would be create the site with a java OSGi module site initializer instead of client extensions.

Or depending on your environment setup, you could switch your default instance with the propertycompany.default.web.idsince the default is always used by the CX site initializer. This obviously has more implications/risks for your environment than the first workaround.