Hi @dionarap
If you got the sortby value in the url you need to make the option from your 'Sort By' selected
I have a search system that returns products, it has a sort feature where i can sort the results on user ratings or A-Z etc; this feature is handled by AJAX as is the pagination.
I am having one issue with this system and that is that when i click onto a product page and then return to the results page by clicking the back browser button it will forget what value the results were sorted by even if i've used pushstate to add it to the url and it will return the default orderby and the same happens if i refresh.
What is the best way to fix this issue? here is the code i have currently.
Please or to participate in this conversation.