generated from boboko/starter
minor changes in comments
This commit is contained in:
@@ -13,8 +13,6 @@ public function show(string $locale)
|
||||
{
|
||||
$query = trim((string) request()->query('q', ''));
|
||||
|
||||
// Nothing to search for — send them to the all-products page rather than
|
||||
// render an empty results page.
|
||||
if ($query === '') {
|
||||
return redirect()->route('products');
|
||||
}
|
||||
@@ -30,4 +28,4 @@ public function show(string $locale)
|
||||
|
||||
return view('search.index', [...$data, 'query' => $query]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user