Skip to content

Commit

Permalink
Merge 5d5fc62 into 98fac6e
Browse files Browse the repository at this point in the history
  • Loading branch information
davisvagris committed Sep 19, 2019
2 parents 98fac6e + 5d5fc62 commit cb76911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/ArboryRouteRedirectMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function handle($request, Closure $next)
$redirect->whereIn('from_url', [$request->url(), $request->path()]);
$redirect->orWhere('from_url', 'LIKE', '_'.$request->path().'_');

$redirect = $redirect->first(['to_url']);
$redirect = $redirect->first(['to_url', 'status']);

if ($redirect) {
return redirect($redirect->to_url, $redirect->status);
Expand Down

0 comments on commit cb76911

Please sign in to comment.