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.
When a url context parameter has a value with spaces, the system does not find the match properly. For example, query parameter "State" = "Texas" would match, but "State" = "Texas State" would not match, because elsewhere in the code, spaces are replaced with "-".
So in this case a failed match occurs because "Texas State" != "Texas-State"
This is similar to Issue 2501093 on the taxonomy context module.
Comment | File | Size | Author |
---|---|---|---|
#2 | match-query-parameter-values-with-spaces-2855142-2.patch | 759 bytes | Lukey |
Comments
Comment #2
Lukey CreditAttribution: Lukey as a volunteer commentedComment #3
Lukey CreditAttribution: Lukey as a volunteer commentedComment #4
Lukey CreditAttribution: Lukey as a volunteer commentedThe patch I posted works well for our situation where we are programmatically populating context variables from a third-party system. I believe the problem exists regardless of where the variable values are coming from.
Comment #6
ynx CreditAttribution: ynx commentedThank you for submitting the patch, @Lukey! It is merged to 7.x-2.x branch.
Comment #7
ynx CreditAttribution: ynx commentedComment #8
ynx CreditAttribution: ynx commented