Sorry Ricco, was having some internet problems.
"That's the problem I don't know how to control the link to which the
site goes after the deletion. Even if it's the home page it will be much
better than an 404 not found error."
That's what I'm saying Ricco, you need to ADD a 404 page redirect using the Redirect plug-in.
The easiest way is, have the error logged. Then go to that error log and set the redirect to another url.
Here is an example.
Create a new Article on your site. Call it "Delete Success". I'd also add it to a new Category on your site called - "Alerts" or "Notices". It will make it easier to sort and find as your site grows.
Now, in that new "Alert Article" you should put something like "File Successfully Deleted."
Then go to the Redirect Component.
Find the 404 Error page that come up and add a redirect URL. They will no longer get a error when they delete a file. It will redirect them the next time they delete a file or article or whatever they're working on.
OR
You could just set up a way to catch ALL your Error pages.
You will have to edit:
PUBLIC_HTML>TEMPLATES>SYSTEM>ERROR.PHP
Around line 10 or so, you should see the defined ()
defined('_JEXEC') or die;
header ("Location: /"); exit(); // This line will redirect all errors to the URL specified.
Hope this helps.
--------
-Dave
Don't forget to SOLVE your topic if it's been solved.