If you visit a product page by navigating through the categories, then add to cart, then click "continue shopping" the button works correctly. However, if you navigate to a product through search, the "continue shopping" button still takes you to the last category page you were on.
"Continue shopping" button should take you back to exactly the same page you left when you clicked "add to cart" or "view cart"
"Continue shopping" button works as expected. It redirects only to catalog pages (category, manufacturer, or search). It should not redirect to the last visited product details page.