Skip to content

Commit 545a042

Browse files
author
Tobias Wojtylak
committed
Redirect to first step using route sd_multistep
1 parent 33b45ab commit 545a042

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Controller/MultiStepController.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,13 @@ public function stepAction(Request $request, string $flow_slug, string $step_slu
9797
return call_user_func_array($callableController, $arguments);
9898
}
9999

100-
public function firstStepAction(Request $request, string $flow_slug): Response
100+
public function firstStepAction(string $flow_slug): Response
101101
{
102102
$flow = $this->flowRegistry->getFlowBySlug($flow_slug);
103103
$firstStep = $flow->getFirstStep();
104-
105-
$currentRoute = $request->get('_route');
106-
107104
$router = $this->get('router');
108105
$firstStepLink = $router->generate(
109-
$currentRoute,
106+
'sd_multistep',
110107
['flow_slug' => $flow_slug, 'step_slug' => $firstStep->getSlug()]
111108
);
112109

0 commit comments

Comments
 (0)