We have a M2 multistore setup with 2 stores. One of the stores is called beta, the url of this domain is beta.mydomain.com. The admin domain url is admin.mydomain.com.
When I login to the admin, the thumbnail image url in the product grid should be admin.mydomain.com but instead it has the wrong url of beta.mydomain.com, resulting in not displaying the images. In product detail the thumbnail image looks fine.
Seems like the admin domain is not finding the correct domain (should be admin.mydomain.com) and for some reason chooses beta?
In nginx we put a mapping for default to '' and for beta to store: beta
Store selector on frontend is working fine.
What could be the issue?