Skip Navigation

[Resolved] Removing filter parameter from from URL

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#958377
url parameters.jpg

Hello support,
So i'm trying to find you if i can keep the current filters functionality of the site (homepage) but clean the URL (remove/hide the filter parameters).
Is this possible at this point without major rework because some of the filters are custom coded and are using those parameters for filtering.
Link to the site: hidden link

Thank you for the support,
Best regards.

#958733
ajax-search.JPG

Hello,

If you are using AJAX search feature in the custom search form, in section "Custom Search Settings", there is an option "Do not adjust URLs after loading search results" in Views setting, section "Custom Search Settings", see screenshot: ajax-search.JPG, it can keep the URL clean.

But there are below two requirements:
1) The view is using AJAX search feature, you need to enable option "Update the Views results without reloading the page", see above screenshot

2) It works only when you output both the search form and search result in the same shortcode [wpv-view], it won't work as expected if you output the search form in the sidebar and output the search result in the content.