How to REDIRECT after Submit Contact form! |
| Many questions have been asked on how to redirect to a Thank-You page after submitting a contact-us form from the contact component. The current implementation of the Thank you message above the submitted form is a jerk and not very profesional. Here is how to solve this.
now find on or around line 462 - 464 (in my version) this code: $link = 'index.php?option=com_contact&task=view&contact_id='. $contact[0]->id .'&Itemid='. $Itemid; replace that code with the URL for the contact Thank-you page as defined as follows: mosRedirect( 'http://www.yoursite.com/index.php?option=com_content&task=view&id=15&Itemid=44' ) If you have SEF enabled and have some nice URL's defined or have something like (example) http://www.yoursite.com/content/view/15/44/ than put that SEF-based URL into the code... Solution by http://joomadesk.com
Set as favorite
Bookmark
Email this
Hits: 8396 Comments (0)
|

