Add to basket on search results redirecting to home
-
I refer to this thread which was unanswered – https://wordpress.org/support/topic/add-to-cart-redirects-to-home/
So when a user adds to basket, they stay on whatever page they’re on and product is added, unless they search for a product in which case when they add to basket they get redirected to home page and product is added.
I can only assume this is because on the search results page the URL already has a query string (for the search term) and the link to “add to basket” is replacing the current query string with the new one (?add-to-cart=319)
Would appreciate a fix for this if possible, thanks.
The topic ‘Add to basket on search results redirecting to home’ is closed to new replies.