diff --git a/app/Http/Controllers/Interfaces/PhysicalInterfaceController.php b/app/Http/Controllers/Interfaces/PhysicalInterfaceController.php index 06a4de45a..8671ac536 100644 --- a/app/Http/Controllers/Interfaces/PhysicalInterfaceController.php +++ b/app/Http/Controllers/Interfaces/PhysicalInterfaceController.php @@ -290,7 +290,12 @@ public function update( StorePhysicalInterface $r, PhysicalInterface $pi ): Redi } AlertContainer::push( 'Physical Interface updated.', Alert::SUCCESS ); - return Redirect::to( $r->cb ? route( "core-bundle@edit", [ "cb" => $r->cb ] ) : route( "virtual-interface@edit", [ "vi" => $pi->virtualinterfaceid ] ) ); + + if( $r->cb ) { + return redirect( route( "core-bundle@edit", [ "cb" => json_decode($r->cb)->id ] ) ); + } + + return redirect( route( "virtual-interface@edit", [ "vi" => $pi->virtualinterfaceid ] ) ); } /**