I know this question has been brought up many times but unable to find definite answer.
Usually my customer will browse through the products without logging in to see any interesting stuff, after they saw the items they wanted and instead of add to cart or add to wishlist, they tend to login and expect it route back to last page (which is the product).
any possibility to use javascript history to bring it back?
I have this code
Code: Select all
"<a href='javascript:history.back(1);'>Back</a>"
Anyone can help?