Skip to content

Commit

Permalink
added route to route post when wrong data are typed
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-xz committed Jul 5, 2024
1 parent 04332e0 commit 167fd0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
$params = [
'main' => 'active',
'url' => $url['name'],
'error' => $valideUrl[0]
'error' => $valideUrl[0],
'urlsStore' => $router->urlFor('urls.store')
];
return $this->get('renderer')->render($response, "index.phtml", $params)->withStatus(422);
}
Expand Down

0 comments on commit 167fd0e

Please sign in to comment.