Skip to content

Commit

Permalink
Merge f582f11 into c0dc87f
Browse files Browse the repository at this point in the history
  • Loading branch information
davisvagris committed Jul 12, 2019
2 parents c0dc87f + f582f11 commit 16d70d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Middleware/ArboryRouteRedirectMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public function handle($request, Closure $next)
{
$redirect = Redirect::query();

$redirect->where('from_url', $request->url());
$redirect->whereIn('from_url', [$request->url(), $request->path()]);
$redirect->orWhere('from_url', 'LIKE', '_'.$request->path().'_');

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

if ($redirect) {
Expand Down

0 comments on commit 16d70d5

Please sign in to comment.