addToPath to prevent multiple param string starting chars (#19139)

This commit is contained in:
Phil Renaud
2023-11-21 09:23:51 -05:00
committed by GitHub
parent e9019d5fc8
commit 2e254112f5
2 changed files with 9 additions and 1 deletions

3
.changelog/19139.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:bug
ui: Fixed an issue where purging a job with a namespace did not process correctly
```

View File

@@ -52,7 +52,12 @@ export default class JobAdapter extends WatchableNamespaceIDs {
}
purge(job) {
const url = this.urlForFindRecord(job.get('id'), 'job') + '?purge=true';
const url = addToPath(
this.urlForFindRecord(job.get('id'), 'job'),
'',
'purge=true'
);
return this.ajax(url, 'DELETE');
}