🔥 Refactor: Replace route_with_country with route in login redirection

This commit is contained in:
HolgerHatGarKeineNode
2025-11-22 22:41:32 +01:00
parent a5dafc67df
commit b964eb7007

View File

@@ -63,7 +63,7 @@ class extends Component {
if ($user) { if ($user) {
Auth::loginUsingId($user->id); Auth::loginUsingId($user->id);
Session::regenerate(); Session::regenerate();
$this->redirectIntended(default: route_with_country('dashboard', ['country' => 'de'], absolute: false), $this->redirectIntended(default: route('dashboard', ['country' => 'de'], absolute: false),
navigate: true); navigate: true);
return; return;
} }
@@ -84,7 +84,7 @@ class extends Component {
RateLimiter::clear($this->throttleKey()); RateLimiter::clear($this->throttleKey());
Session::regenerate(); Session::regenerate();
$this->redirectIntended(default: route_with_country('dashboard', ['country' => 'de'], absolute: false), $this->redirectIntended(default: route('dashboard', ['country' => 'de'], absolute: false),
navigate: true); navigate: true);
} }