Last Updated: May 03, 2017
·
1.912K
· dja4mower

Magento code snippets to retrieve URL path in STATIC BLOCKS

Get Magento Store Base URL


Use the below code to add your magento store url to a CMS page or Static Block - replace your store with your store ID and mypage.html with the page you re linking to.

{{base url='yourstore/mypage.html'}}

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

Magento checkout pages are a common target for Magecart-style card skimming. Payment, analytics, and extension scripts on those pages need an inventory and a watch for silent changes.

Security insights from Cside