Redirection allows us to redirect the browser to a new location. Joomla! provides us with some easy ways in which to redirect the browser.
Joomla! redirects are implemented using HTTP 301 redirect response codes. In the event that response headers have already been sent, JavaScript will be used to redirect the browser.
The most common time to redirect a browser is after a form has been submitted. There are a number of reasons why we might want to do this, such as the following:
Redirecting after form submission prevents forms from being submitted multiple times when the browser is refreshed
We can redirect to different locations depending on the submitted data
Redirecting to another view reduces the amount of development required for each task in the controller
There are many scenarios where the use of a redirect is common. The following list identifies some of these:
Canceling editing an existing item
Copying items
Creating new items and updating existing items
Deleting items...