From d6e96b778a32d2938cd840dcf1c1056d72480121 Mon Sep 17 00:00:00 2001 From: robertsaternus Date: Wed, 5 Aug 2026 11:21:16 +0200 Subject: [PATCH 1/2] INT-348: Fix brand suggestion issue Set the correct redirect address for brand suggestion --- CHANGELOG.md | 1 + .../frontend/templates/ff/communication.phtml | 23 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b86c6f7..ca340f45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fix - Fix issue with cart btn if WebComponents library is disabled +- Fix brand suggestion redirection url ## [v5.3.1] - 2026.07.02 ### Fix diff --git a/src/view/frontend/templates/ff/communication.phtml b/src/view/frontend/templates/ff/communication.phtml index 623cbf35..adfea3d5 100644 --- a/src/view/frontend/templates/ff/communication.phtml +++ b/src/view/frontend/templates/ff/communication.phtml @@ -64,7 +64,28 @@ $searchImmediate = $communicationParameters['search-immediate'] ?? 'false'; factfinder.notifications.addSuggestClickListener(origin => { if (origin.suggestion.type === `searchTerm` || origin.suggestion.type === `brand`) { - window.location.href = `/factfinder/result?query=${origin.suggestion.searchParams.query}`; + const searchParams = origin.suggestion.searchParams; + const urlParams = new URLSearchParams(); + + if (searchParams.query && searchParams.query !== '*') { + urlParams.set('query', searchParams.query); + } + + if (searchParams.filters && searchParams.filters.length > 0) { + searchParams.filters.forEach(filter => { + filter.values.forEach(val => { + urlParams.append('filter', `${filter.name}:${val.value}`); + }); + }); + } + + + const addParams = ; + Object.keys(addParams).forEach(key => urlParams.append(key, addParams[key])); + + + window.location.href = `/factfinder/result?${urlParams.toString()}`; + return false; } }); From 214e0264f0fd7f35821006e7733688e6ea49d246 Mon Sep 17 00:00:00 2001 From: robertsaternus Date: Wed, 5 Aug 2026 11:25:49 +0200 Subject: [PATCH 2/2] Fix CI --- src/view/frontend/templates/ff/communication.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/frontend/templates/ff/communication.phtml b/src/view/frontend/templates/ff/communication.phtml index adfea3d5..ded3b978 100644 --- a/src/view/frontend/templates/ff/communication.phtml +++ b/src/view/frontend/templates/ff/communication.phtml @@ -80,7 +80,7 @@ $searchImmediate = $communicationParameters['search-immediate'] ?? 'false'; } - const addParams = ; + const addParams = ; Object.keys(addParams).forEach(key => urlParams.append(key, addParams[key]));