Redirect to Thank you page in Multilingual

dixittejas 26 Nov, 2008
Hello,

I am working in one site with multilingual(english and french).
When form is submitted it redirect to Thank you page for each language so how to check this & redirect.
Also i am using Joomla default SEO functionality.
I am using below code for this in autogenerated code,
<?php
$lang =& JFactory::getLanguage();
switch ( $lang->getName() ) {
  case 'French (Fr)':
    $url  = "fr/thank-you";
  break;
  
  case 'English (United Kingdom)':
  default:
    $url = "en/thank-you";
  break;
}
?>
But it redirect to siteurl/formurl/en/thank-you.
I want siteurl/en/thank-you.

I am using Joomla 1.5.6 and chronoform - 3.0 J1.5 BETA 1.

Please help me
Thanks in advance

Tejas
GreyHead 26 Nov, 2008
Hi dixittejas ,

You seem to be setting the url but not applying it to the ReDirect url. You need one more step in there I think.

Bob
dixittejas 26 Nov, 2008

You seem to be setting the url but not applying it to the ReDirect url. You need one more step in there I think.


Thanks for reply.
I already put below code also but not paste here.

<?php
$rows[0]->redirecturl = $url;
?>

Tejas
Max_admin 26 Nov, 2008
Hi,

make the $url like this:
$url = "http://www.yourdomain.com/en/thank-you";
I mean full URL!

upgrade to V3.0 stable too!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.