diff --git a/src/job-execution/WebJobExecutor.ts b/src/job-execution/WebJobExecutor.ts index ef47598..bfe45ef 100644 --- a/src/job-execution/WebJobExecutor.ts +++ b/src/job-execution/WebJobExecutor.ts @@ -56,6 +56,10 @@ export class WebJobExecutor extends BaseJobExecutor { if (jobUri.length > 0) { apiUrl += '&_job=' + jobUri + /** + * Using both _job and _program parameters will cause a conflict in the JES web app, as it’s not clear whether or not the server should make the extra fetch for the job uri. + * To handle this, we add the extra underscore and recreate the _program variable in the SAS side of the SASjs adapter so it remains available for backend developers. + */ apiUrl = apiUrl.replace('_program=', '__program=') }