filter out path parameters if the parameter is not in the path