Forums

compose url with base URL joonla site in redirect action

tvdgreft 24 Jun, 2015
Is it possible to compose an url, with the base URL of the joomla site, in the redirect action of chronoforms5.
For example I want to redirect to "index.php?option=com_chronoforms5&chronoform=cursus", which is in fact
www.haagstheaterhuis.nl/index.php?option=com_chronoforms5&chronoform=cursus
but on my test site it is:
//localhost.haagstheaterhuis/index.php?option=com_chronoforms5&chronoform=cursus

With the action custom code it works like this:

<?php
$mainframe = JFactory::getApplication();
$node=JURI::base().'index.php?option=com_chronoforms5&chronoform=cursus';
$mainframe->redirect($node);
?>

but how to do this with the Redirect action

Theo
GreyHead 24 Jun, 2015
Hi Theo,

As far as I know the CFv5 option doesn't support a dynamic root but I think that using index.php in the ReDirect URL box and this in the Extra Params box should work OK
option="com_chronoforms5"
chronoform="cursus"

Bob
This topic is locked and no more replies can be posted.