Skip Navigation

[Resolved] %5B%5D in url

This support ticket is created 6 years, 2 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)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Nigel 6 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1110200

I am trying to: allow multiple selection in search

Link to a page where the issue can be seen: hidden link

I expected to see: automatic pagination as search is updated (with multiple checkboxes checked)

Instead, I got: as soon as %5B%5D appears in the url, pagination stops.

#1110614

Nigel
Supporter

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

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

Hi there

I was able to reproduce this issue on a clean test site with the latest version of Views, so I've escalated it so that it can be sent to the developers for a fix.

Thanks for reporting it, I will update you as soon as I get some feedback.

#1112272

Nigel
Supporter

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

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

The developer said that this is by design.

If you have a slider (which your auto-paginating View effectively is), then when you interact with the View the expectation is that you intend to do something with the currently displayed results.

So if your auto-paginating View has manual pagination controls, for example, as soon as you use one then the auto-pagination stops.

Your use case—where the results of a custom search is output as a slider, and the slider results should update when filters are changed—is a use case that has never come up before and isn't provided for.

He said that he should be able to provide a JS snippet to re-start the auto-pagination after filters have been modified, and when I get that from him I'll pass it on to you.

#1112405

great - thank you!

#1114350

Nigel
Supporter

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

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

The developer suggested a technique, but it didn't work when I tested it, so I've had to go back to them for an update.

I'll keep you posted.

#1114507

ok. it's really weird, but I cloned the site using installatron in cpanel, and the new site works - even though the same characters are in the url, it doesn't prevent the slider from working. I don't think I made any changes at all. hidden link

#1115005

Nigel
Supporter

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

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

The %5B%5D characters are a red herring, they just confirm that a filter has been specified.

And it is expected that the auto-pagination (which is intended to create sliders) stops when you interact with the View by, for example, setting a filter value.

The developer said that he will take another look at the code he suggested to me to trigger re-starting the pagination when a filter is applied, but suspects it may not be possible after all without some re-writing of how pagination works.

I'm waiting for another update from him to let me know if he has an alternate suggestion, and I'll let you know.

#1117220

Nigel
Supporter

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

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

Hi there

It seems that it is not possible to re-start the auto-pagination after a filter change without some re-factoring of the existing code.

I'm not sure how you seem to have it working, as we've been unable to, and what we see—that auto-pagination stops when the View is interacted with—is the intended result.

This has been moved to a feature request: https://toolset.com/feature-request/continue-automated-ajax-pagination-in-a-view-even-after-selecting-items-in-a-search-input/

Please go ahead and vote for it. If there is sufficient demand from other users it will get adopted.