Skip to content

Commit cba96c5

Browse files
author
Bohdan Korablov
committed
Merge remote-tracking branch 'thunder/MAGETWO-49796' into bugfixes-delivery
2 parents 10bbcaa + cebb3a3 commit cba96c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/mage/menu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ define([
206206

207207
if (firstCategoryUrl) {
208208
lastUrlSection = firstCategoryUrl.substr(firstCategoryUrl.lastIndexOf('/'));
209-
categoryUrlExtension = (lastUrlSection.lastIndexOf('.') !== -1)
210-
? lastUrlSection.substr(lastUrlSection.lastIndexOf('.')) : '';
209+
categoryUrlExtension = lastUrlSection.lastIndexOf('.') !== -1 ?
210+
lastUrlSection.substr(lastUrlSection.lastIndexOf('.')) : '';
211211

212212
possibleCategoryUrl = currentUrl.substr(0, currentUrl.lastIndexOf('/')) + categoryUrlExtension;
213213
this._setActiveMenuForCategory(possibleCategoryUrl);

0 commit comments

Comments
 (0)