From 8b8db871bc991fc2dfb3b57b0270be04d9c727a8 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Thu, 9 Jun 2022 17:07:45 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 1e539e2..d55b03e 100755 --- a/routes/web.php +++ b/routes/web.php @@ -31,7 +31,10 @@ if(Config::get('meta.custom_home_url') != '') { } if(env('HOME_URL') != '') { Route::get('/', [UserController::class, 'littlelinkhome'])->name('littlelink'); - Route::get( $custom_home_page_url, [App\Http\Controllers\HomeController::class, 'home'])->name('home'); + if(Config::get('meta.disable_home_page') == 'redirect') { + Route::get($custom_home_page_url, function () {return redirect(Config::get('meta.redirect_home_page'));}); + }elseif(Config::get('meta.disable_home_page') != 'true') { + Route::get( $custom_home_page_url, [App\Http\Controllers\HomeController::class, 'home'])->name('home');} } else { if(Config::get('meta.disable_home_page') == 'redirect') { Route::get('/', function () {return redirect(Config::get('meta.redirect_home_page'));});