From ece77911951f1d9b51f3c2262206b4f4e1f129d1 Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Fri, 17 Oct 2025 14:40:29 -0700 Subject: [PATCH 1/4] Coveo: Fix filtering clearing in URL on refresh --- assets/js/coveo.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/js/coveo.js b/assets/js/coveo.js index 6e0a8384..b2579d65 100644 --- a/assets/js/coveo.js +++ b/assets/js/coveo.js @@ -85,7 +85,9 @@ async function atomicCoveo() { return request; }, }); - await el.executeFirstSearch(); + + // No standalone searchboxes should be getting executing first search. + if (el.id === 'search-v2') await el.executeFirstSearch(); }); const headerSearchBar = document.querySelector('#search-standalone-header'); From e9f86810ff4638d96b080e995aa80f91d0a27287 Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Fri, 17 Oct 2025 15:19:19 -0700 Subject: [PATCH 2/4] Coveo: Removed redundant code --- layouts/partials/coveo-atomic-search.html | 4 ++-- layouts/partials/header.html | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/layouts/partials/coveo-atomic-search.html b/layouts/partials/coveo-atomic-search.html index c704a89b..96db5fa5 100644 --- a/layouts/partials/coveo-atomic-search.html +++ b/layouts/partials/coveo-atomic-search.html @@ -1,6 +1,6 @@ {{ $redirectionUrl := .redirectionUrl | default .Site.Params.coveo_search_redirect | default "/search.html" }} {{ $id := .id | default "search-standalone-header"}} - - + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9ab8f2d1..8a0f04f7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -19,8 +19,8 @@ {{ end }} {{ end }} @@ -35,10 +35,8 @@
- - {{ $redirectUrl := default .Site.Params.coveo_search_redirect "/search.html" }} - - + + {{ partial "coveo-atomic-search.html" (dict "id" "search-standalone-header-dropdown") }}
{{ end }} From 5aaf159e998ec140bfbb79d4fe4075a839ab35dc Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Fri, 17 Oct 2025 15:57:18 -0700 Subject: [PATCH 3/4] Coveo: Revert to atomic external instead of standalone --- assets/css/v2/style.css | 1 + layouts/partials/header.html | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index 7d7572a2..8df30a83 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -1423,6 +1423,7 @@ atomic-search-interface#search-v2 { } } +atomic-external#search-standalone-header, atomic-search-interface#search-standalone-header { height: fit-content; diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8a0f04f7..deafd912 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -19,8 +19,16 @@ {{ end }} {{ end }} @@ -35,8 +43,16 @@
- - {{ partial "coveo-atomic-search.html" (dict "id" "search-standalone-header-dropdown") }} + {{ if in .RelPermalink "search.html" }} + + + {{ $redirectUrl := default .Site.Params.coveo_search_redirect "/search.html" }} + + + {{ else }} + + {{ partial "coveo-atomic-search.html" (dict "id" "search-standalone-header-dropdown") }} + {{ end }}
{{ end }} From 39370ffba0fa6b5443215e834d69462cfda50717 Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Fri, 17 Oct 2025 16:07:31 -0700 Subject: [PATCH 4/4] Coveo: Add styling --- layouts/partials/header.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index deafd912..14d295e3 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -23,7 +23,7 @@ {{ $redirectUrl := default .Site.Params.coveo_search_redirect "/search.html" }} - + {{ else }} @@ -47,7 +47,7 @@ {{ $redirectUrl := default .Site.Params.coveo_search_redirect "/search.html" }} - + {{ else }}