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 72f831b commit cebb3a3Copy full SHA for cebb3a3
lib/web/mage/menu.js
@@ -206,8 +206,8 @@ define([
206
207
if (firstCategoryUrl) {
208
lastUrlSection = firstCategoryUrl.substr(firstCategoryUrl.lastIndexOf('/'));
209
- categoryUrlExtension = (lastUrlSection.lastIndexOf('.') !== -1)
210
- ? lastUrlSection.substr(lastUrlSection.lastIndexOf('.')) : '';
+ categoryUrlExtension = lastUrlSection.lastIndexOf('.') !== -1 ?
+ lastUrlSection.substr(lastUrlSection.lastIndexOf('.')) : '';
211
212
possibleCategoryUrl = currentUrl.substr(0, currentUrl.lastIndexOf('/')) + categoryUrlExtension;
213
this._setActiveMenuForCategory(possibleCategoryUrl);
0 commit comments