diff --git a/.changelog/19139.txt b/.changelog/19139.txt new file mode 100644 index 000000000..4fa892b24 --- /dev/null +++ b/.changelog/19139.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fixed an issue where purging a job with a namespace did not process correctly +``` diff --git a/ui/app/adapters/job.js b/ui/app/adapters/job.js index 8c4d9c3da..de7c71eb6 100644 --- a/ui/app/adapters/job.js +++ b/ui/app/adapters/job.js @@ -44,7 +44,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'); }