Skip to content

Commit 4267628

Browse files
Indrani SonawaneIndrani Sonawane
authored andcommitted
Merge remote-tracking branch '30070/mattkrupnik-patch-1' into compr_author
2 parents 14454de + 3debd1a commit 4267628

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Current extends Template
3030
private const REGEX_INDEX_URL_PATTERN = '/(\/index|(\/))+($|\/$)/';
3131

3232
/**
33-
* Default path
33+
* This property specifies the default path.
3434
*
3535
* @var DefaultPathInterface
3636
*/
@@ -139,9 +139,10 @@ protected function _toHtml()
139139

140140
if ($this->isCurrent()) {
141141
$html = '<li class="nav item current">';
142-
$html .= '<strong>'
143-
. $this->escapeHtml(__($this->getLabel()))
144-
. '</strong>';
142+
$html .= '<strong';
143+
$html .= $this->getAttributesHtml() . '>'
144+
. $this->escapeHtml(__($this->getLabel()))
145+
. '</strong>';
145146
$html .= '</li>';
146147
} else {
147148
$html = '<li class="nav item' . $highlight . '"><a href="' . $this->escapeHtml($this->getHref()) . '"';

0 commit comments

Comments
 (0)