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

@@ -50,7 +50,7 @@ class HomeController extends Controller
} catch (ExpiredInviteCode $e) {
Log::alert(sprintf('User is using an expired token for invoice [%s] using [%s]',$o->id,$code));
return redirect()->to('/login');
return redirect('login');
} catch (DoormanException $e) {
Log::alert(sprintf('An attempt to read invoice id [%s] using [%s]',$o->id,$code));
@@ -72,6 +72,6 @@ class HomeController extends Controller
*/
public function service_progress(Service $o,string $status)
{
return redirect()->to($o->action($status) ?: url('u/service',$o->id));
return redirect($o->action($status) ?: url('u/service',$o->id));
}
}