mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
addToPath to prevent multiple param string starting chars (#19139)
This commit is contained in:
3
.changelog/19139.txt
Normal file
3
.changelog/19139.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Fixed an issue where purging a job with a namespace did not process correctly
|
||||
```
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user