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.
Hello all, I have problem with get param when I create redirects
I create solution, please see and check it
1. example redirect: rss?view=tags => tags
we have rss?view=tags => tags?view=tags why??? I need simple /tags
solution: remove $redirect->redirect_options['query']
2. second problem with Get param
example test/categories/21-test?limit=10&start=10 => test?page=1
wa have test/categories/21-test?limit=10&start=10 => 3%test?pageFpage%3D610 - very bad!
solution: we need create query param $redirect->redirect_options['query']
Comment | File | Size | Author |
---|---|---|---|
#4 | example.jpg | 250.95 KB | mozh92 |
6ffb3fabdacc1da7c20da07f2dcdc7e23c5a8003.patch | 1.88 KB | mozh92 | |
Comments
Comment #2
mozh92 CreditAttribution: mozh92 commentedIt work only admin interface /admin/config/search/redirect/list
help
Comment #3
mozh92 CreditAttribution: mozh92 commentedmy dirty solution(
Comment #4
mozh92 CreditAttribution: mozh92 commentedComment #5
pvasili CreditAttribution: pvasili commentedHow it work?
I apply this patch and try url /catalog.php?cat=12. How create redirect to /catalog/12 ?
Comment #6
euk CreditAttribution: euk as a volunteer commentedCan replicate this.
I wonder if upgrading to RC3 would help?
Alternatively, check out #2804737: 7.x-1.0-rc4 release - there were a lot of fixes since RC3 release. Maybe grab latest 7.x-1.x-dev?
Alternatively, check out #2514248: Plan for Redirect v7.x-1.0 release - maybe grab latest 7.x-1.x-dev and apply patches from all related issues? This worked for me.