Skip to content

Commit

Permalink
Update RedirectRouter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lpheller authored Aug 9, 2023
1 parent dd59a54 commit 4ddc4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedirectRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getRedirectFor(Request $request)
protected function handleRedirect(Request $request, $redirects)
{
collect($redirects)->each(function ($redirect) {
$this->router->get($redirect['from_url'], function () use ($redirect) {
$this->router->get(urldecode($redirect['from_url']), function () use ($redirect) {
$redirectUrl = $this->resolveRouterParameters($redirect['to_url']);

return redirect($redirectUrl, $redirect['http_status_code']);
Expand Down

0 comments on commit 4ddc4d3

Please sign in to comment.