I have next code on my single page.

  // RETURN TO PREVIOUS CATEGORY
  $('.cross').on('click', function(){
    var toPrevPage = $(this);
        toPrevPage = history.back();
  });

When you click on cross - you will be returned to the category from which you came, but when I go to single page through direct link - I can not return to the category.
Why does this happen and how can I fix it?

Read more here: Rerurn to previous category from single page


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: