Preprocess changes doesn't stick


Hello, scripting noob here. I’m trying to change a value in a filter in a GET request, e.g. from XXX to YYY.

However, I’m having problems getting the changed filter parameter to actually be processed. Somehow the api just ignores this change. Any kind soul able to help in this?

My code:

var filters = event.request.parameters.filter;

if (filters.indexOf(‘XXX’) >= 0) {
//Found XXX
var filterchanged = filters.replace(/XXX/g, “YYY”);
event.request.parameters.filter = filterchanged;
event.request.content_changed = true;



Hi gelnteoh
I was looking for something similar …hahahaha