Changing the parameter name didn't help. I managed to place $this->getAllParams
in the main body of the class (using __construct), but it still picks up the parameters for login action, not the ones for arriving the login form page.
I ended up with the following code.
Code:
public function getParam()
{
$instance = \XLite\Core\Request::getInstance();
$fro = $instance->getData();
$url = $fro["returnURL"];
$from = parse_url($url, PHP_URL_QUERY);
$pieces = explode("&",$from);
foreach($pieces as $key => $value)
{
$part=explode("=",$value);
if ($part[0]=="param")
{return $part[1];}
}
return null;
}
This does the job, but I feel somehow stupid... Anyway, thank you very much for all your help and your patience.