Provides functionality of redirecting to detail page if search result has only 1 product.