fix(ui): Correct redirect routes after task deletion
This commit is contained in:
parent
53dba89599
commit
1e28cf56ac
1 changed files with 2 additions and 2 deletions
|
|
@ -133,9 +133,9 @@ public function delete()
|
|||
$this->task->delete();
|
||||
|
||||
if ($this->type === 'application') {
|
||||
return redirect()->route('project.application.configuration', $this->parameters, $this->task->name);
|
||||
return redirect()->route('project.application.scheduled-tasks.show', $this->parameters);
|
||||
} else {
|
||||
return redirect()->route('project.service.configuration', $this->parameters, $this->task->name);
|
||||
return redirect()->route('project.service.scheduled-tasks.show', $this->parameters);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return handleError($e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue