diff --git a/app/Http/Controllers/Care/ConsultationController.php b/app/Http/Controllers/Care/ConsultationController.php index c88e3de..4130c24 100644 --- a/app/Http/Controllers/Care/ConsultationController.php +++ b/app/Http/Controllers/Care/ConsultationController.php @@ -240,7 +240,7 @@ class ConsultationController extends Controller app(ConsultationReturnContext::class)->forget(); - return redirect()->route('care.patients.show', $consultation->patient) + return redirect()->route('care.queue.index') ->with('success', 'Consultation completed.'); } diff --git a/tests/Feature/CareAppointmentTest.php b/tests/Feature/CareAppointmentTest.php index b936170..14a114e 100644 --- a/tests/Feature/CareAppointmentTest.php +++ b/tests/Feature/CareAppointmentTest.php @@ -175,7 +175,7 @@ class CareAppointmentTest extends TestCase $this->actingAs($this->user) ->post(route('care.consultations.complete', $consultation)) - ->assertRedirect(route('care.patients.show', $this->patient)); + ->assertRedirect(route('care.queue.index')); $appointment->refresh(); $consultation->refresh(); diff --git a/tests/Feature/CareConsultationReturnContextTest.php b/tests/Feature/CareConsultationReturnContextTest.php index 1155938..5fa59a1 100644 --- a/tests/Feature/CareConsultationReturnContextTest.php +++ b/tests/Feature/CareConsultationReturnContextTest.php @@ -218,7 +218,7 @@ class CareConsultationReturnContextTest extends TestCase $this->actingAs($this->user) ->withSession([ConsultationReturnContext::SESSION_KEY => $this->consultation->uuid]) ->post(route('care.consultations.complete', $this->consultation)) - ->assertRedirect(route('care.patients.show', $this->patient)) + ->assertRedirect(route('care.queue.index')) ->assertSessionMissing(ConsultationReturnContext::SESSION_KEY); } }