We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e382bd commit f8083a1Copy full SHA for f8083a1
src/components/Layout/LayoutHeader.tsx
@@ -52,6 +52,10 @@ export const LayoutHeader = ({
52
};
53
54
// Search result transform function that will strip out the pageMain anchor tag
55
+ // Algolia search results include the anchor tag where the content was found but since we
56
+ // are aggregating records this ends up always being the pageMain anchor tag which is the
57
+ // page's main content section. This adds focus to the main content section on every search
58
+ // and creates a funny user experience. Removing this tag will avoid that.
59
const transformItems = (items) => {
60
items.map((item) => {
61
if (item.url.includes('#pageMain')) {
0 commit comments