$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$url = $objectManager->get( 'Magento\Store\Model\StoreManagerInterface' )->getStore()->getUrl( 'xxx/xxx/xxx' );
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$url = $objectManager->get( 'Magento\Store\Model\StoreManagerInterface' )->getStore()->getUrl( 'xxx/xxx/xxx' );