View a list of items to see the 8th item, then click to view the item before returning to the Product List page or the 8th item How should this be done?
Reply content:
View a list of items to see the 8th item, then click to view the item before returning to the Product List page or the 8th item How should this be done?
It is recommended to view the details when the new tab opens, which is the best solution.
The other problem that can not be avoided is that if the product details are not returned to the list page, but through other means (such as the original click on all products come in, read the details and click on the hot goods) again into the list page? The list page may or may not have that product, or there is a product but the product is not the 8th one, how to do?
The specific technology must be a cookie or local storage on the line, but do not solve the fundamental problem is not solve the problem, not solve the problem and do so much.
You can add a session, store the user to view the location, and then go to the product list when the direct positioning
Refer to the Laravel method.
is the current link in the session, simple and fast and easy to make mistakes. Because the session is not cleared before the browser is closed.
You can also put cookies inside, the effect is the same.