Two url's, one share link?

So I run my one seafile server which is truly awesome! thanks for making this product :slight_smile:

I run two domains which point to my server but when I share something from my server, nomatter from which domain I am pointed to the server, it always takes one of the two (always the same) domain as share link. Could this be pointing to the current domain from which Iā€™m visiting?

So:
domainA.com gives share link: https://domainA.com/d/xxxxxxxxx/
domainB.com gives share link: https://domainA.com/d/xxxxxxxxx/

But what would be nice:
domainA.com gives share link: https://domainA.com/d/xxxxxxxxx/
domainB.com gives share link: https://domainB.com/d/xxxxxxxxx/