redirect event with parameters

Add parameters to a ChronoForms redirect event.

Overview

The redirect shortcode only accepts an event name or a full URL, not additional parameters appended to an event name.
To include parameters, use a full URL in the redirect shortcode instead of just the event name. Construct the URL with the required parameters directly.

Answered
Connectivity v6
ie ieraora 01 Feb, 2020
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}&params=(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&params=(data:id_listino_2)}
he healyhatman 01 Feb, 2020
No.

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.