We are using the XML Datasource Record asset and doing some dynamic filtering based on a GET variable. We are filtering on a “department” field which sometimes has a space in it, e.g. “Visual Arts”. However, when the GET var is processed, it doesn’t work because that space is encoded in the URL.
I have also tried using POST but that doesn’t work either.
Does anyone have any ideas on a way around this encoding issue?
Somehow the value is still getting messed up. If I enter “Visual Arts” into the “Value to Match” it works correctly, but using the %%department%% replacement doesn’t work, even with the Set Value suggestion.
It seems somehow the matching is incorrect when it seems it shouldn’t be.
Is there any way to see the actual string that is being matched in php?
Thanks, any chance you could export it to XML and upload here (or somewhere else if discourse doesn’t allow those file types) so that we can download and import, replicate, and test easier?
works for single words but not for anything with spaces.
Don’t have time to wait on this one (unless there’s a quick fix) so going to try filtering in ssjs but figured I should report.