We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents feca270 + 0cd6605 commit 17d5f99Copy full SHA for 17d5f99
src/Controller/Component/MultiStepFormCoreComponent.php
@@ -358,7 +358,14 @@ protected function displayFirst()
358
protected function redirectFisrt()
359
{
360
$this->controller->Flash->error(__('It is over the post max size'));
361
- return $this->controller->redirect([$this->action]);
+ $passedArgs = $this->request->getParam('pass');
362
+ $redirectUrl = ['controller' => $this->request->controller, 'action' => $this->action];
363
+ if (!empty($passedArgs)) {
364
+ foreach ($passedArgs as $arg) {
365
+ $redirectUrl[] = $arg;
366
+ }
367
368
+ return $this->controller->redirect($redirectUrl);
369
}
370
371
/**
0 commit comments