fixed redirects in routes file
This commit is contained in:
parent
e38a40e5fe
commit
64cb72c4a7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue