Get base URL and current URL in the template file in Magento 2

$block->getUrl(‘hello/test’);
$block->getBaseUrl();

3 thoughts on “Get base URL and current URL in the template file in Magento 2

  1. Pingback: lazywin888
  2. Pingback: m358

Comments are closed.