Skip to main content

You can use the below code to pass parameters to any urls:

$param$params = ['param1' => 'value1', 'param2' => 'value2'];
$resultRedirect->setPath('frontname/path/controllername', ['params' => $params]);
return $resultRedirect;

You can use the below code to pass parameters to any urls:

$param = ['param1' => 'value1', 'param2' => 'value2'];
$resultRedirect->setPath('frontname/path/controllername', ['params' => $params]);

You can use the below code to pass parameters to any urls:

$params = ['param1' => 'value1', 'param2' => 'value2'];
$resultRedirect->setPath('frontname/path/controllername', ['params' => $params]);
return $resultRedirect;
Source Link
Sukumar Gorai
  • 10.9k
  • 4
  • 19
  • 46

You can use the below code to pass parameters to any urls:

$param = ['param1' => 'value1', 'param2' => 'value2'];
$resultRedirect->setPath('frontname/path/controllername', ['params' => $params]);