Skip Navigation

[Resolved] When I select a category and press F5 it redirects to the homepage

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2632305
Capture.PNG

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.

#2632411

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

#2634387

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.

#2635783

Thank you so much for your help, Waqar!