Skip to content

Commit 6ac4086

Browse files
committed
ACP2E-3149: Double slashes in customer segment URL
1 parent ef81f5a commit 6ac4086

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/web/mage/adminhtml/grid.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,12 @@ define([
370370
parts = url.split(new RegExp('\\?'));
371371

372372
url = parts[0].replace(re, '/');
373-
url += varName + '/' + varValue + '/';
374-
373+
if (varName) {
374+
url += varName + '/';
375+
}
376+
if (varValue) {
377+
url += varValue + '/';
378+
}
375379
if (parts.size() > 1) {
376380
url += '?' + parts[1];
377381
}

0 commit comments

Comments
 (0)