Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created panels page and views for custom taxonomy term page(not using default term_view), the url like 'business/category/%term'. I used multiple terms as argument, like 'business/category/1+2+3+4+5'. I got the page and content generated by views, there's pager on the bottom. But the url on pager is like 'business/category/1 2 3 4 5', compare two urls:
business/category/1+2+3+4+5
business/category/1 2 3 4 5?page=0,1
Why is '+' instead of space on url of pager.
Comment | File | Size | Author |
---|---|---|---|
#21 | views-569194-21.patch | 774 bytes | tim.plunkett |
#18 | ajax.patch | 756 bytes | jschrab |
#15 | wrong_url_arguments_on_pager_views_3.patch | 754 bytes | jschrab |
#14 | wrong_url_arguments_on_pager_views_3.patch | 755 bytes | jschrab |
#13 | 569194_wrong_url_arguments_on_pager_13.patch | 809 bytes | blauerberg |
Comments
Comment #1
esmerel CreditAttribution: esmerel commentedGeneral close of issues over 6 months old without activity.
Comment #2
tamerzg CreditAttribution: tamerzg commentedThis issue is still present. It can be reproduced by creating a View with Term ID arguments with Allow multiple terms per argument option enabled. Enable Ajax paging. If we present arguments as 1+2+3+4+5, clicking on a pager takes us to 1 2 3 4 5?page=1, but clicking on next or previous page will take us to a blank page (because arguments became 1%202%203%204%205?page=1).
This issue appears only when ajax pager is enabled.
Comment #3
esmerel CreditAttribution: esmerel commentedIf this is still a problem, can you update to what your version is, what other modules you might be using in conjunction, etc?
Comment #4
tamerzg CreditAttribution: tamerzg commentedI am using Views 2.11, CCK 2.8 and Views carousel 1.0
Comment #5
esmerel CreditAttribution: esmerel commentedComment #6
Shane Birley CreditAttribution: Shane Birley commentedI haven't tested this but have you tried to use "," rather than "+" between each term ID? I seem to recall there was a difference but, for the life of my tired brain, I can't remember what it is. Anyone?
Comment #7
iamjon CreditAttribution: iamjon commentedyaoweizhen,
did you try Shane Birley's suggestion?
closing from lack of activity. please feel free to reopen if you still need help.
Comment #8
blauerberg CreditAttribution: blauerberg commentedthis issue represent in my site. (views 6.x-2.12)
Shane Birley's suggestion can't apply to me, because I want to get list by using taxonomy OR(not AND).
Anyone has any idea to workaround?
Comment #9
blauerberg CreditAttribution: blauerberg commentedI think this issue is caused by "double encode" of view_path.
When the issue is reproduced, I can saw double encoded argument like "1%202C2%202C3%202C4%202C5".
I attached patch for views-6.x-2.12, it works on me.
Comment #10
peterx CreditAttribution: peterx commentedThank you blauerberg, #9 fixed same problem in D7.
Comment #11
peterx CreditAttribution: peterx commentedComment #12
dawehnerSadly this patch doesn't apply anymore, but also manual changing of this lines made the wheel spinning into infinity,
no idea why...
Comment #13
blauerberg CreditAttribution: blauerberg commented@dereine
What version do you use?
I attached new patch for views-6.x-2.16, it works on me.
If patch does not work, please try to clear all cache before accessing page.
Comment #14
jschrab CreditAttribution: jschrab commentedBump up!
This is a really good thing to do - even for Views 3! I've been scratching my head on the following scenario:
I've created a trivial patch which should work for Views 3.
Comment #15
jschrab CreditAttribution: jschrab commentedOk, ignore that patch - use this one.
Comment #16
peterx CreditAttribution: peterx commentedThe patch in #15 works in our Views 7.x-3.0-rc3
Comment #17
tim.plunkettThe patch indents the line too much, but other than that I think this looks reasonable.
Comment #18
jschrab CreditAttribution: jschrab commentedPatch revised to use space-based indenting instead of tab-based indenting (oops!)
Comment #19
jschrab CreditAttribution: jschrab commentedChanging status to "needs review".
Comment #21
tim.plunkettComment #22
tim.plunkett.
Comment #23
tim.plunkettComment #24
dawehnerThe patch so looks fine.
Comment #25
jschrab CreditAttribution: jschrab commentedIs there something not quite right that is holding up the acceptance of this patch?
Comment #26
dawehnerWell the only problem is the lazyness of the committer ....
Committed to 7.x-3.x and mark as to be ported for d8, because with the HTTP Kernel this might be different.
Comment #27
jschrab CreditAttribution: jschrab commentedMusic to my ears! Many thanks!
Comment #28
tim.plunkettWe haven't finished removing usage of $_REQUEST, might as well commit this as is now.
Comment #29
dawehnerSure this makes sense, committed to 8.x-3.x