How to Add Shopify Redirects on Search

I’m using Algolia on my shopify site, and I want to redirect users to collection pages when they enter certain search terms. I followed the instructions here: https://www.algolia.com/doc/tutorials/search-ui/ux-patterns/how-to-add-redirects-on-search/ but when searching for the terms I added to my index, I am not redirected.

Has anyone implemented redirects on search using the Shopify app? If so, can you give me some pointers for how to make it work?

Could you give us the actual code samples you used to implement this feature?
This would definitely help us help you!

Nevermind – looks like my redirects are now working! Maybe it just took a few hours for the new index to be created.

1 Like