Cleaner way to build the redirect
This commit is contained in:
parent
7dead957f0
commit
7d856c61fb
3 changed files with 12 additions and 6 deletions
|
@ -86,7 +86,7 @@ class DownloadController extends BaseController
|
|||
}
|
||||
}
|
||||
} else {
|
||||
return $response->withRedirect($this->container->get('router')->pathFor('index'));
|
||||
return $response->withRedirect($this->router->pathFor('index'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue