Rpm repo use absolute path

In order to access mongodb for installation on machine behind a proxy/firewall I want to cache mongodb through jfrog artifactory. I meet recently an issue because in the repodata the file primary.xml.gz got the absolute path of repo.mongodb.org:

$ zless /mnt/c/Users/a877953/Downloads/primary\(1\).xml.gz |grep location
  <location xml:base="https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64" href="RPMS/mongosh-0.8.3-x86_64.rpm"/>
  <location xml:base="https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64" href="RPMS/mongosh-0.9.0-x86_64.rpm"/>

whereas in older primary you get:

$ zless /mnt/c/Users/a877953/Downloads/ffbbb146af75d9ecf6fe008330c6376db130bb35-primary.xml.gz |grep location
<location href="RPMS/mongodb-org-shell-4.4.0-1.el8.x86_64.rpm"/>
<location href="RPMS/mongodb-org-tools-4.4.0-1.el8.x86_64.rpm"/>

Because of that, when dnf/yum try to get a rpm, it will try to access directly on repo.mongodb.org which is not possible in our case.

Is it possible to revert to previous behaviour and have relative path in repodata generated file.

Thanks for help