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 89cf888 commit 491b295Copy full SHA for 491b295
lib/internal/Magento/Framework/View/Element/Html/Link/Current.php
@@ -87,7 +87,9 @@ private function getMca()
87
*/
88
public function isCurrent()
89
{
90
- return $this->getCurrent() || $this->getUrl($this->getPath()) == $this->getUrl($this->getMca());
+ $pathUrl = preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getPath()));
91
+ $mcaUrl = preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getMca()));
92
+ return $this->getCurrent() || $pathUrl == $mcaUrl;
93
}
94
95
/**
0 commit comments