Skip to content

Commit 3e84f26

Browse files
committed
feat(unbxdSearch.js) - add support for redirect rules
1 parent 0b7e7be commit 3e84f26

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

unbxdSearch.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,11 @@ var unbxdSearchInit = function(jQuery, Handlebars){
13041304

13051305
this.currentNumberOfProducts = 0;
13061306

1307+
if(obj.hasOwnProperty('redirect')) {
1308+
window.location = obj['redirect']['value'];
1309+
return false;
1310+
}
1311+
13071312
if (!obj.hasOwnProperty('banner')){
13081313
this.options.bannerSelector.length
13091314
&& jQuery(this.options.bannerSelector).empty();

0 commit comments

Comments
 (0)