Duplicate results in docsearch

Hi,

Using docsearch and the Algolia crawler with the docusuarus_v2 config, I am getting duplicate results. The same page is getting indexed with and without a trailing slash.

I have checked and I do have canonical URLs specified (with trailling slash) and my sitemap uses trailing slashes. I also have trailingSlashes: true set in the docusaurus site config.

In the crawler config I have tried setting ignoreCanonicalTo: false, but this prevents any pages from being indexes.

Any ideas that might fix this?

Hi @osecluna

I wanted to let you know that I’ve reached out to the DocSearch team to see if they have any suggestions. I’ll let you know what I hear!

Are the non-trailing slash URLs serving content (200) or redirecting to the slash URLs (30x) in your site?