fixed redirects in routes file

This commit is contained in:
flash 2016-12-08 20:35:39 +01:00
parent e38a40e5fe
commit 64cb72c4a7

View file

@ -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