We need to decodeURI for redirect uri & remove any empty query params from the request.
Issue we are facing is it does shows as decoded but when the final query param which it generates still have the encoded redirect uri. Used below JS for testing but didn't seems to be working.Please suggest.
var count = context.getVariable('request.queryparams.count'); var queryString = context.getVariable('request.querystring'); var queryStringNew = "" var queryParams = queryString.split("&"); for (var i = 0; i < count; i++) { var queryParam = queryParams[i].split("="); if (queryParam[1] === "") { context.removeVariable("request.queryparam." + queryParam[0]); } if (queryParam[0] == "redirect_uri") { print("OLD-->>" + queryParam[1] + "NEW-->>" + decodeURIComponent(queryParam[1])); context.setVariable("request.queryparam." + queryParam[0], decodeURIComponent(queryParam[1])); } }