I'm sorry, I searched to the forum and FAQ (variable shortcodes),
If I need to add a parameters of a redirect event, how can I?
I tried solutions similar this, without success.
{redirect:name_event}¶ms=(data:id_listino_2) ?
I done with this (see below), but there is another solution with name of event?
{redirect:index.php?option=com_chronoconnectivity6&cont=manager&conn=BE_listini¶ms=(data:id_listino_2)}
If I need to add a parameters of a redirect event, how can I?
I tried solutions similar this, without success.
{redirect:name_event}¶ms=(data:id_listino_2) ?
I done with this (see below), but there is another solution with name of event?
{redirect:index.php?option=com_chronoconnectivity6&cont=manager&conn=BE_listini¶ms=(data:id_listino_2)}
No.
CFs parser (that takes the shortcodes and performs actions) for redirect looks like this
CFs parser (that takes the shortcodes and performs actions) for redirect looks like this
function redirect($name){
$connection = $this->_connection();
$events = array_keys($connection['events']);
if(in_array($name, $events)){
$url = $this->_url();
$url = \G2\L\Url::build($url, ['event' => $name]);
}else{
$url = $this->parse($name, false, 2);
}
\G2\L\Env::redirect(r2($url));
}So if the text equals the name of an event it redirects to that event, otherwise it parses the text (like in your working example).
This topic is locked and no more replies can be posted.
