Created
March 4, 2015 09:42
-
-
Save peterjaap/7c431c962a09538c3538 to your computer and use it in GitHub Desktop.
Fix Lesti_Fpc + Manadev SEO Layered Navigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/code/community/Lesti/Fpc/Helper/Data.php b/app/code/community/Lesti/Fpc/Helper/Data.php | |
index 94e9ea1..daec7e1 100644 | |
--- a/app/code/community/Lesti/Fpc/Helper/Data.php | |
+++ b/app/code/community/Lesti/Fpc/Helper/Data.php | |
@@ -70,7 +70,13 @@ class Lesti_Fpc_Helper_Data extends Lesti_Fpc_Helper_Abstract | |
'port' => $request->getServer('SERVER_PORT'), | |
'full_action_name' => $this->getFullActionName()); | |
$uriParams = $this->_getUriParams(); | |
- foreach ($request->getParams() as $requestParam => | |
+ $manadevParams = array(); | |
+ if($parsedUrl = Mage::registry('m_parsed_url')) { | |
+ $manadevParams = $parsedUrl->getQueryParameters(); | |
+ } | |
+ $parametersList = array_merge($manadevParams,$request->getParams()); | |
+ | |
+ foreach ($parametersList as $requestParam => | |
$requestParamValue) { | |
if (!$requestParamValue) { | |
continue; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment