Fix redirect egg

This commit is contained in:
Vincent BRIDIER 2022-12-06 12:57:49 +01:00
parent 82202efb3c
commit e7c5480fc8
No known key found for this signature in database
GPG key ID: 8571BFA20420D512

View file

@ -49,7 +49,7 @@ class EggController extends Controller
$mobas = TraceaEgg::where('box_code', $id)->orderBy('box_code', 'DESC')->first();
if (!$mobas) {
return redirect('/search');
return redirect()->route('egg.search');
}
$edes = $mobas->code_edes;