In all my resources, absolutely all, I want the redirec to the index after creating and after editing records. I am using this code in every single CreateNameOfResource.php and EditNameOfResource.php:
protected function getRedirectUrl(): string
{
return $this->getResource()::getUrl('index');
}
Is there a way to put that globally?
Thanks.