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')) {