In this case, the domain is not detected correctly. However, I can only reproduce it on the server but not locally. I guess there are some other conditions that I could not detect. Perhaps the conifg_split is somehow related too because the hostname is being replaced on the server.
I figured out that when the plugin Account administration pages is activated it calls all processInbounds super early when some other modules are not loaded, in my case it calls CountryPathProcessor, which calls getActiveDomain where the setRequestDomain already initialized the active domain but as it happened too early the hook country_path_domain_request_alter is not being called so it just returns the first found domain entry and puts it to the cache.
I found some tasks describing a similar issue but related to the domain_config module → .
Active
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.