Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Labels
Jul 17, 2019 19:11:05 GMT -8
Post by Rajiv on Jul 17, 2019 19:11:05 GMT -8
Forum URL: giffas.proboards.comI use labels extensively on my forum. For example, the label "GS(S)". A screenshot of page 1 of the board when the label is clicked: However, when I click on page "2" or "Next", it goes to page 2 of the whole board, rather than page 2 for the label. A screenshot: Can this be corrected? Thanks.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Labels
Jul 17, 2019 19:31:56 GMT -8
Post by Chris on Jul 17, 2019 19:31:56 GMT -8
Appears to be happening here on support for me as well, changing page destroys the filter. We'll wait for an admin to confirm if this is a bug or a temporary glitch.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Labels
Jul 17, 2019 21:56:54 GMT -8
Post by Rajiv on Jul 17, 2019 21:56:54 GMT -8
Thanks.
It's been happening for a while now. I now find that re-freshing the page each time seems to rectify the listing.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 17, 2019 22:08:49 GMT -8
The filter remains in the url so refreshing should reapply it, but it should not be losing that filter when using the pagination in the first place. Thanks for pointing this out
|
|
#e61919
Support Manager
154778
0
1
Nov 27, 2024 12:17:07 GMT -8
Michael
19,618
May 2010
wiseowl
|
Labels
Jul 18, 2019 9:36:14 GMT -8
Post by Michael on Jul 18, 2019 9:36:14 GMT -8
Hi,
This is a long-term bug that has not been a priority to fix because of how infrequently the label system is used. I'll see if we can bump this up the list.
|
|
#e61919
Support Manager
154778
0
1
Nov 27, 2024 12:17:07 GMT -8
Michael
19,618
May 2010
wiseowl
|
Post by Michael on Jul 18, 2019 11:15:09 GMT -8
Hi,
This issue was resolved in v6 but appears to not have been resolved in v5. There is still a pending task to resolve this bug (in v5) but I don't have an exact ETA for when that fix will go into place and be pushed live. With any luck it will see attention in the next two weeks and will be pushed live sometime after that.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,018
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Aug 21, 2019 0:32:06 GMT -8
Rajiv , I believe I have a coding solution for you <script>/* Patch Autosearch Query Filters (Global Header)*/ $.ajaxPrefilter(function( options ) { if ( "string" == typeof options.data ) { if( /filters%255B%255D/.test(options.data)) options.data = options.data.replace('filters%255B%255D',encodeURIComponent('filters[]')); }else if("object" == typeof option.data && options.data["filters%5B%5D"]){ options.data["filters[]"] = options.data["filters%5B%5D"]; } }); </script> The fault lies in the proboards.consolidateParams method since it uses decodeURIComponent on the query values but not on the query names themselves so when you end up with filters%5B%5D instead of filters[] in the url the autosearch has no idea what to do with that. The code simply tries to target that specific case where filters are URI encoded in the url and change before consolidateParams grabs it. Upon deeper inspection other filters do not URI encode the square brackets in the url (example: /board/44/support-board?filters[]=thread_replies%3Agt%3A45) so when the server rightly does this for labels it appears that URI encoded "filters%5B%5D" is also being encoded over again before being sent via XHR so that the percent signs used for the first encoding are themselves encoded resulting in a double encoded string "filters%255B%255D" which would have to be double decoded on the server side to get back to "filters[]" (I'm going to guess that's not happening server side yet). (Original code was causing problems assuming all filters behaved this way)
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Labels
Oct 1, 2019 0:52:55 GMT -8
Post by Rajiv on Oct 1, 2019 0:52:55 GMT -8
Thanks Chris. For now, just doing this: Thanks. It's been happening for a while now. I now find that re-freshing the page each time seems to rectify the listing.
|
|
#e61919
Support Manager
154778
0
1
Nov 27, 2024 12:17:07 GMT -8
Michael
19,618
May 2010
wiseowl
|
Post by Michael on Oct 1, 2019 9:52:07 GMT -8
Hi,
This fix was pushed live a number of weeks ago so you shouldn't need any workarounds any longer.
|
|
Rajiv
New Member
Posts: 143
inherit
149477
0
Jan 30, 2014 17:24:59 GMT -8
Rajiv
143
November 2009
rainjar
|
Post by Rajiv on Oct 5, 2019 16:39:15 GMT -8
Hi, This fix was pushed live a number of weeks ago so you shouldn't need any workarounds any longer. Thanks, I should have noticed that! Wasn't thinking!!
|
|