I am using the core_block_abstract_to_html_before event to get the labels of the active filters of the layered navigation. I load the filters like this:

$activeFilters = Mage::getSingleton('Mage_Catalog_Block_Layer_State')->getActiveFilters();
$labels = array();

foreach ($activeFilters as $filter) {
$labels[] = array('label'=> strip_tags($filter->getLabel()));

The problem is that the filter url is appended in double curly brackets to each value (this is the case for all values like attribute name, code, label etc.), so the values of my array look like this

[label] => XL{{http://www.mydomain.com/shopby/XL/}}

Anyone has an idea why this is happening and how to prevent this?

1 Answer 1


It's because you have old version of this navigation module installed:

To prevent it, please upgrade or de-activate the module.

Also you can just strip everything in curly brackets.

  • Thanx, this solved my problem. I am removing the URL with preg_replace, I will think about a future upgrade of the module.
    – Socrates
    Aug 28, 2014 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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