Skip Navigation

[Resolved] Change url for view filters?

This support ticket is created 4 years, 9 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 3 voices.

Last updated by Christian Cox 4 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1835835

I have a view built in the block editor, with search filters to change the results. Each time I add a new filter the url updates however it is really long, for example

pagetitle/?wpv-wpcf-active-regions=Europe&wpv_aux_current_post_id=3041&wpv_aux_parent_post_id=3041&wpv_view_count=3049

Is there any way to update this to something more friendly like pagetitle/?wpv-wpcf-active-regions=Europe?

Thanks!

#1836269

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Mary

Are you updating your View results via ajax?

If so you can go to Toolset > Settings > Front-end Content and disable the option "Enable history management setttings for AJAX custom search" (likewise for pagination), and then no URL parameters will be shown in the address bar at all.

If you are not using ajax and instead updating results via page reload, then the URL parameters cannot be hidden, and there aren't any options for modifying them.

#1845595

Hi, I'm not sure this solution will work as I need unique urls for each filtered view so I can link to them separately.

#1845893

Hi, as Nigel mentioned the additional parameters added by the system, like &wpv_aux_current_post_id=3041&wpv_aux_parent_post_id=3041&wpv_view_count=3049, are not modifiable from the Block Editor. They are in place to help Views know which filter options should be selected in which View on the page, and for best results should not be removed from the URL.