1. Create this UDT called pass_query_string
Code: Select all
// This UDT accepts the variable $url
// It will strip the page parameter out
// of the server QUERY_STRING
// And return the url with the query string
$gCms = cmsms(); //global $gCms;
$smarty =& $gCms->GetSmarty();
if ( isset($params['url'])){
$new_url = $params['url'] . '?' ;
}
$query = $_GET;
unset ( $query['page'] );
$new_url .= http_build_query( $query );
$smarty->assign('full_url' , $new_url );
Code: Select all
{pass_query_string url='http://yoursite.com/home.htm'}
{redirect_url to=$full_url}