A
A
Andrey Salnikov2015-10-13 07:25:34
PHP
Andrey Salnikov, 2015-10-13 07:25:34

How to return to search results?

There is some filter. The user typed some search parameters, found what he was looking for. Moved to product page. And the question is - how to make it so that the user can go back to the search results?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Ineshin, 2015-10-13
@IonDen

1. Just by clicking the back button in the browser.
2. Create a link of the form:

<a href="javascript:history.back()">назад к результатам</a>

Both of these methods will work if the search results are generated by a GET request with parameters in the browser line. For example: www.mysite.ru/search?q=tables

M
Maxim Timofeev, 2015-11-07
@webinar

Cache and remove from the cache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question