Added class to get correct DM Url based on enivronment + legacy versions