Get base URL and current URL in the template file in Magento 2Home » Get base URL and current URL in the template file in Magento 2 Fri-Jun-2019 9Get base URL and current URL in the template file in Magento 2$block->getUrl(‘hello/test’); $block->getBaseUrl();