Tags:

How to get current URL in Magento CMS Block or Page?

Profile picture of Christoph Maßmann Chris
created on , last updated on Follow me

With the following code you can retrieve the current page url in your Magento CMS block or page:

{{store url="*/*/*" _current="true" _use_rewrite="true"}}

As an alternative with the following PHP code, you can retrieve the current URL anywhere:

<?php echo Mage::helper('core/url')->getCurrentUrl() ?>


Post Comments to "How to get current URL in Magento CMS Block or Page?"

Submit Comment

With the use of this comment form you agree to the saving and processing of your data by this website. More information about the processing of your data can be found in our privacy statement.
Your data will be transmitted securely via SSL.

Meine Magento Extension Bestseller