Skip Navigation

[Resolved] Split: Update page URL when filtering – How to remove the url params when click on Reset button and back to original URL

This support ticket is created 4 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by FranklinD4690 4 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#1739319

Also when I hit the Reset filter button the URL doenst go back to the initial URL.

If i have this after filtering:
hidden link

I would like this after clicking on Reset:
hidden link

#1739325

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I've added the following JS code to your block view's "Custom JS and CSS" section's JS box that will help you to return to the original URL:

jQuery(document).ready(function($){
  
 $(document).on('click',".wpv-reset-trigger",function(){
  var url = window.location.href.split('?')[0];
 
   window.location.href= url;
  
});

});
#1739335

OK thank you.

#1739343

Works perfectly. Thank you Minesh

#1739347

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Great - please feel free to mark resolve the ticket.

#1739377

My issue is resolved now. Thank you!