Hello,
I created a filter for a view with some product categories, and when I choose one and then press F5, it redirects to the homepage. Even if I press the reset button and then I press F5, it turns to the homepage too.
I don't know if there is another way to do it to avoid this.
Hi,
Thank you for contacting us and I'd be happy to assist.
To troubleshoot this, I'll need to see how this view and its search are set up in the admin area. Can you please share temporary admin login details, along with the link to the page with this view?
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
regards,
Waqar
Thank you for sharing the access details.
I've been running some tests on your website and on my test website and noticed that the issue is limited only to your website. It can't be reproduced on a fresh test install.
Your website is trying to load a script file that is no longer available and resulting in the 404 error:
hidden link
And because this script file is missing, you'll see the following error in the browser's console:
Uncaught TypeError: $(...).typed is not a function
This script error causes the archive's script to not function properly, which causes the incorrect URL to get updated on the search and page refresh.
As a workaround, in that product archive's search settings, I've selected the option 'Full page refresh when visitors click on the search button with input values auto-updating', so that the results are not updated using the AJAX script.
I've also included the 'submit' button and now when the search is performed or the page is refreshed, it stays on the original archive page.
Thank you so much for your help, Waqar!