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