How to redirect the visitor after the contact page
- Joel Lipman
- Joomla
- Hits: 30397
How to redirect the visitor after the contact page:
Open Contact.php and go to line 473 - 475 and change the line:
$link = ‘index.php?option=com_contact&task=view&contact_id=’. $contact[0]->id .’&Itemid=’. $Itemid; mosRedirect( $link, _THANK_MESSAGE )
- $link = ‘index.php?option=com_contact&task=view&contact_id=’. $contact[0]->id .’&Itemid=’. $Itemid;
- mosRedirect( $link, _THANK_MESSAGE )
replace that code with the URL for the contact Thank-you page as defined as follows:
$link = sefRelToAbs( 'index.php?option=com_contact&task=view&contact_id='. $contact[0]->id .'&Itemid='. $Itemid ); mosRedirect( 'index.php?option=com_content&task=view&id=28&Itemid=102' );
- $link = sefRelToAbs( 'index.php?option=com_contact&task=view&contact_id='. $contact[0]->id .'&Itemid='. $Itemid );
- mosRedirect( 'index.php?option=com_content&task=view&id=28&Itemid=102' );
Create thankyou page and menu item for ID, change this in the code to redirect to the item ID - remove menu item