From 5380e5b6033e97a5b3c65d8fcc03c9f4d8ec36c4 Mon Sep 17 00:00:00 2001 From: Jacob Logan Date: Tue, 21 May 2024 10:54:31 -0700 Subject: [PATCH] update search comment --- src/components/Layout/LayoutHeader.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Layout/LayoutHeader.tsx b/src/components/Layout/LayoutHeader.tsx index 0fb6d5c1b0e..5dda1a3812a 100644 --- a/src/components/Layout/LayoutHeader.tsx +++ b/src/components/Layout/LayoutHeader.tsx @@ -52,6 +52,10 @@ export const LayoutHeader = ({ }; // Search result transform function that will strip out the pageMain anchor tag + // Algolia search results include the anchor tag where the content was found but since we + // are aggregating records this ends up always being the pageMain anchor tag which is the + // page's main content section. This adds focus to the main content section on every search + // and creates a funny user experience. Removing this tag will avoid that. const transformItems = (items) => { items.map((item) => { if (item.url.includes('#pageMain')) {