How to replace absolute with relative URLs in docSearch results?

Is there a way to get (or update) search results to use relative and not absolute URLs in docSearch?

Many thanks in advance!

All best,
Toma

:wave: @ttasovac

Thank you for reaching out.

Since we are fully managing the crawler and building the Algolia index for you, this will not be possible. However you can pre-process the results received from the engine and change the url as you see fit. This is done via the transformdata method available from the UI. This will be done on the client side.

Cheers

Thanks, Sylvain! That’s exactly what I was looking for.

All best,
Toma

1 Like