The Agolia Crawler currently only allows you to navigate to the page a particular search result is on when it is a node within the Configuration component. This should allow you to navigate correctly by setting the url tag properly.
return helpers.docsearch({
recordProps: {
lvl0: {
selectors: "",
defaultValue: lvl0,
},
url: {
selectors: "",
defaultValue: url.toString(),
},
lvl1: "h1",
lvl2: "article h2",
lvl3: "article h3",
lvl4: "article h4",
lvl5: "article h5, article td:first-child",
lvl6: "article h6",
content:
"article p, article li, article td:last-child, article button.with-value",
},
});
This is how you can override the URL tag, however, I do not know how to access the anchor tag for this item. You do have access to a Cheerio instance which might be possible to use, however I cannot think of anything currently.
The Agolia Crawler currently only allows you to navigate to the page a particular search result is on when it is a node within the Configuration component. This should allow you to navigate correctly by setting the
urltag properly.This is how you can override the URL tag, however, I do not know how to access the anchor tag for this item. You do have access to a Cheerio instance which might be possible to use, however I cannot think of anything currently.