Redirecting Joomla's View (MVC)
In some cases, redirecting the view of a component of module can be easily accomplished by a bit of JavaScript. For instance, the component ccNewsletter doesn't allow for an option (as of this writing) to redirect after a successful event occurs. To accomplish this task, simply add the following code at the end of a template override for the view of the component.
You can control the time and destination of the redirect. Time is 1000 milliseconds in this case, and the destination is http://betweenbrain.com/. For example, ccNewsleter's activate view was:
After the redirect code addition, it is now:
Download the ccNewsletter Overrides v1.1. Extract the contents to the HTML folder of your template and enjoy.
Update May 18th 2010: We've improved this code to use the base URL of the website. The new code, also available in the above download, is: