Developer forum

Forum » Development » Automated redirect after search

Automated redirect after search


Reply
Hi,

I would like to implement a product search (with auto suggest). the twist which i'm trying to achieve is not to show a results page but forward the user directly to the best (1st) result. Any ideas how to achieve this?

Gr. Matthijs

Replies

 
Reply

You could choose to only render the first item in the result (use if tag to check this) orĀ use javascript to redirect to the url of the first item in the result.

Make shure that you handle the case where the search results in "no items found".
 
Reply
I will try that. Thanks for your response!

 

You must be logged in to post in the forum