update 20.10.2025
This commit is contained in:
parent
8c11130b5d
commit
a939cd51ef
616 changed files with 84821 additions and 4121 deletions
18
app/Exceptions/Handler.php
Executable file → Normal file
18
app/Exceptions/Handler.php
Executable file → Normal file
|
|
@ -75,15 +75,17 @@ class Handler extends ExceptionHandler
|
|||
}
|
||||
|
||||
try {
|
||||
// Versuche domain-spezifische Login-Route
|
||||
$context = app(\App\Domain\DomainContext::class);
|
||||
$loginRoute = match($context->type) {
|
||||
'portal' => 'portal.login.form',
|
||||
'crm' => 'login', // CRM hat eine eigene login route
|
||||
default => 'login'
|
||||
};
|
||||
// HOTFIX: DomainContext temporär deaktiviert
|
||||
// TODO: Nach Claude v2 Implementation wieder aktivieren
|
||||
// $context = app(\App\Domain\DomainContext::class);
|
||||
// $loginRoute = match($context->type) {
|
||||
// 'portal' => 'portal.login.form',
|
||||
// 'crm' => 'login', // CRM hat eine eigene login route
|
||||
// default => 'login'
|
||||
// };
|
||||
|
||||
return redirect()->guest(route($loginRoute));
|
||||
// Temporär: Verwende Standard-Login-Route
|
||||
return redirect()->guest(route('login'));
|
||||
} catch (\Exception $e) {
|
||||
// Fallback: Weiterleitung zur Hauptdomain
|
||||
return redirect()->guest('https://' . config('app.domain') . config('app.tld_care') . '/login');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue