Skip to content

Algolia returns old URLs: solution

Anastasia Videneeva edited this page Dec 21, 2021 · 1 revision

Problem

Sometimes we want to update URLs of existing pages (e.g. adding custom slug to page frontmatter or adding /javascript-api prefix to xk6-browser and jslib page slugs). If the slug was the only thing that changed for that pages, Algolia search might still return the old URLs.

Solution

The easiest way to deal with this would be clearing the index in Algolia dashboard before deploying. To do this, go to Algolia dashboard, navigate to the index you want to clear, click Manage index and select Clear in the dropdown menu.

Clone this wiki locally