Add some cases for #3973

This commit is contained in:
James Cole 2020-10-21 06:24:16 +02:00
parent f07c1f7164
commit 2f885d65cc
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -77,6 +77,8 @@ class GracefulNotFoundHandler extends ExceptionHandler
return $this->handleGroup($request, $exception);
case 'attachments.show':
case 'attachments.edit':
case 'attachments.download':
case 'attachments.view':
// redirect to original attachment holder.
return $this->handleAttachment($request, $exception);
break;
@ -117,12 +119,10 @@ class GracefulNotFoundHandler extends ExceptionHandler
$request->session()->reflash();
return redirect(route('categories.index'));
break;
case 'rules.edit':
$request->session()->reflash();
return redirect(route('rules.index'));
break;
case 'transactions.edit':
case 'transactions.mass.edit':
case 'transactions.mass.delete':