Skip to content

Commit cebb3a3

Browse files
author
Bohdan Korablov
committed
MAGETWO-49796: Catalog top nav, CSS class not set to active when using Varnish
1 parent 72f831b commit cebb3a3

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)