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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lukey created an issue. See original summary.

Lukey’s picture

Lukey’s picture

Issue summary: View changes
Lukey’s picture

Status: Active » Needs review

The 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.

  • ynx committed 73978e4 on 7.x-2.x authored by Lukey
    Issue #2855142 by Lukey: Spaces in querystring parameter values not...
ynx’s picture

Thank you for submitting the patch, @Lukey! It is merged to 7.x-2.x branch.

ynx’s picture

Status: Needs review » Fixed
ynx’s picture

Status: Fixed » Closed (fixed)