Route cosmetic layout updates, and standardise on using /home to redirect back to the homescreen, and standardise usage of redirect()

This commit is contained in:
2025-05-16 13:58:20 +10:00
parent 256e4c6260
commit 8d72c1ceb5
10 changed files with 57 additions and 58 deletions

View File

@@ -113,7 +113,7 @@ class ServiceController extends Controller
$np->pivot->effective_at = Carbon::now();
$np->pivot->save();
return redirect()->to(url('u/service',[$o->id]));
return redirect(url('u/service',[$o->id]));
}
return view('theme.backend.adminlte.service.change_pending')
@@ -191,7 +191,7 @@ class ServiceController extends Controller
// An Error Condition
if (is_null($result))
return redirect()->to('u/service/'.$o->id);
return redirect('u/service/'.$o->id);
elseif ($result instanceof RedirectResponse)
return $result;
@@ -213,7 +213,7 @@ class ServiceController extends Controller
$stage = ''; // @todo this is temporary, we havent written the code to automatically jump to the next stage if wecan
}
return redirect()->to('u/service/'.$o->id);
return redirect('u/service/'.$o->id);
}
/**