9

How can I get (current store) Base Url in CMS block/page in Magento 2? Actually, I am displaying category names in the footer by using static block. For that how can I give the Category Url links in admin static block?

27

You can add current store URL in static block.

{{store url=""}}

If you wanto add store url with category URL.

{{store url="category-url"}}
0

You can add store URL in static block:

<a href="{{store direct_url='identifier'}}">Your link</a>

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.