Skip to content

Instantly share code, notes, and snippets.

@peterjaap
Created March 4, 2015 09:42
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save peterjaap/7c431c962a09538c3538 to your computer and use it in GitHub Desktop.
Save peterjaap/7c431c962a09538c3538 to your computer and use it in GitHub Desktop.
Fix Lesti_Fpc + Manadev SEO Layered Navigation
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