fix: update back action to return to previous page or assignment index
This commit is contained in:
parent
57e32fed73
commit
6755e740a2
@ -310,9 +310,10 @@ public function submit(): void
|
|||||||
|
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
{
|
{
|
||||||
|
|
||||||
return [
|
return [
|
||||||
BackAction::make()
|
BackAction::make()
|
||||||
->url(AssignmentResource::getUrl()),
|
->url(url()->previous() ?? AssignmentResource::getUrl('index')),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user