Skip Navigation

[Resolved] filter appending to url after every submit.

This support ticket is created 6 years, 10 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 6 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#611300

I have 2 views that are being controller by 1 search filter. I'm not using ajax, the page refreshes on submit.

So this sorta works, but it seems to be appending the URL after every submit.

For instance, I hit submit on the filter it will do domain.com/page?filter=plop

Then if I change the value and hit submit again I get this value:
domain.com/page?filter=plop&filter=foo

It still seems to filter correctly, but its very confusing if a user wants to copy the url.

#611366

Nigel
Supporter

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

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

Hi there

I had better confirm how you've done this before I try to replicate the issue myself.

You have one normal custom search View which has a filter for some custom field, meaning it will add a URL parameter when applied, something like ?wpv-wpcf-field=foo

You have a second View on the same page. It doesn't include any filter controls, but you have added a Query Filter which is the same as that in the first View, which filters based on the same custom field and where the value comes from the same wpv-wpcf-field URL parameter.

Does that sound right?

#611947

Yah that sounds right to me.

#612169

Nigel
Supporter

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

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

I couldn't reproduce the problem, so I suspect your set up is somewhat different.

Could I get credentials from you to take a look and see the issue in person?

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes other than possibly to temporarily add a backup plugin to take a snapshot of the site.

Can you also confirm which are the Views in question, and where are they displayed?

#615831

I can't give you direct access to this install, its behind a firewall.

I'd be happy to do a teamshare with you and can debug through me. Otherwise I can't really give you access.

#616298

Nigel
Supporter

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

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

Can I get you to share screenshots with me, and if I can't spot what the problem is I could set up a screen sharing session.

I need to see:

1. where you have inserted the two Views
2. each of the Views in question

You can take full-page screenshots (i.e. including what is cut off below the visible screen) with Chrome or Firefox, as described here: hidden link