It's not possible to implement this in our scenario. The back button of the browser remembers only the url from where it is coming from. In our case whether its pagination link 1,2,3 or so on the url remains same and the pagination is implemented in such way that it needs to be on page 1 so it can request the database to get the required result of the search.