fix: bypass Nova error page for missing tenant

This commit is contained in:
MeghdadFadaee committed 2026-09-09 21:28:48 +03:30
1 parent eec91ac8e5
commit ef8c73531d
4 files changed
+31 -5

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ class TenantNotSelected extends RuntimeException implements Responsable
$destination = $this->selectorUrl();
if ($request instanceof Request && $request->header('X-Inertia') === 'true') {
return redirect()->to($destination);
return response('', 409, ['X-Inertia-Location' => url($destination)]);
}
if ($request instanceof Request && $request->expectsJson()) {