mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-01-09 16:53:22 +01:00
Update web.php
This commit is contained in:
parent
40f3dc0ec2
commit
8b8db871bc
@ -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'));});
|
||||
|
Loading…
Reference in New Issue
Block a user