From 64cb72c4a76f7593d355e73b68b28dc2a517d22f Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 8 Dec 2016 20:35:39 +0100 Subject: [PATCH] fixed redirects in routes file --- routes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes.php b/routes.php index 10ad330..09eaa4b 100644 --- a/routes.php +++ b/routes.php @@ -36,7 +36,7 @@ Router::group(['before' => 'maintenance'], function () { // Link compatibility layer, prolly remove this in like a year Router::get('/r/{id}', function ($id) { - redirect("/p/{$id}"); + return redirect("/p/{$id}"); }); Router::get('/p/{id}', function ($id) { $resolve = [ @@ -62,7 +62,7 @@ Router::group(['before' => 'maintenance'], function () { $link = $resolve[$id]; - redirect(substr($link, 0, 4) === 'http' ? $link : route($link)); + return redirect(substr($link, 0, 4) === 'http' ? $link : route($link)); }); // Info