Skip to content

Commit b32b91b

Browse files
committed
Fix unit test issue 24068
1 parent 491b295 commit b32b91b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/Magento/Framework/View/Element/Html/Link/Current.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ private function getMca()
8787
*/
8888
public function isCurrent()
8989
{
90-
$pathUrl = preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getPath()));
91-
$mcaUrl = preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getMca()));
92-
return $this->getCurrent() || $pathUrl == $mcaUrl;
90+
return $this->getCurrent() ||
91+
preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getPath()))
92+
== preg_replace('/(\/index|(\/))+($|\/$)/', '', $this->getUrl($this->getMca()));
9393
}
9494

9595
/**

0 commit comments

Comments
 (0)