We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 491b295 commit b32b91bCopy full SHA for b32b91b
lib/internal/Magento/Framework/View/Element/Html/Link/Current.php
@@ -87,9 +87,9 @@ private function getMca()
87
*/
88
public function isCurrent()
89
{
90
- $pathUrl = preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getPath()));
91
- $mcaUrl = preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getMca()));
92
- return $this->getCurrent() || $pathUrl == $mcaUrl;
+ return $this->getCurrent() ||
+ preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getPath()))
+ == preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getMca()));
93
}
94
95
/**
0 commit comments