I have an http_response variant that redirects the taxonomy term view page to a view, such that
taxonomy/term/1 => videos/tags/kittens
I need to be able to pass query parameters through to my views display, such that
taxonomy/term/1?keywords=whiskers => videos/tags/kittens?keywords=whiskers
Right now the query string handling in page_manager_http_response_render() respects any query parameters that are specified in $handler['conf'], but it drops query parameters from the current request. To me it would make sense to pass along any query parameters from the current request as part of the redirect.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ctools-2709455-5.patch | 1.01 KB | Snehal Brahmbhatt |
Comments
Comment #2
ksenzeeComment #3
merlinofchaos commentedIMO, on a redirect, the preservation of query string should be optional and not enabled by default. However, the use case for preserving the query string makes sense.
Comment #4
chris matthews commentedThe 3 year old patch to http_response.inc does not apply to the latest ctools 7.x-1.x-dev.
Comment #5
Snehal Brahmbhatt commented@Chris2, Find the attached that rerolled for ctools 7.x-1.x-dev as per the added requirement in #4.
Thanks!..
Comment #6
rivimeyReview-wise, the thought seems good but:
Finally, some tests should be added to check that both the query is, and is not, passed through.
Comment #7
rivimeyComment #8
pieterdcAgree with @rivimey
Enable-able can be done by extending the configuration form in page_manager_http_response_edit_settings().
Comment #9
japerryDrupal 7 is no longer supported, closing.