Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from YouweGit/fix-ee-url-rewrite-issues
Browse files Browse the repository at this point in the history
Fix Magento Enterprise URL issues
  • Loading branch information
Björn Meyer authored Jun 27, 2017
2 parents f1a2df9 + b06a82a commit 0b140f3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/app/code/community/Flagbit/FilterUrls/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,20 @@ public function normalize($string)
return $string;
}

/**
* Get the configured URL suffix
*
* @return string
*/
public function getUrlSuffix()
{
$suffix = '';
if(Mage::helper('core')->isModuleEnabled('Enterprise_Catalog'))
{
$suffix .= '.';
$suffix = Mage::getStoreConfig('catalog/seo/category_url_suffix');
if (Mage::helper('core')->isModuleEnabled('Enterprise_Catalog')
&& substr($suffix, 0, 1) !== '.') {
$suffix = '.' . $suffix;
}
$suffix .= Mage::getStoreConfig('catalog/seo/category_url_suffix');

return $suffix;
}

}

0 comments on commit 0b140f3

Please sign in to comment.