From 09b016711ce5b1c4fafb8f4394a2075271fdea2b Mon Sep 17 00:00:00 2001 From: kyledoesdev Date: Wed, 16 Oct 2024 17:45:10 -0400 Subject: [PATCH] fix bad redirect after save --- app/Http/Controllers/RankingController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/RankingController.php b/app/Http/Controllers/RankingController.php index 4ddb46d..ad82397 100644 --- a/app/Http/Controllers/RankingController.php +++ b/app/Http/Controllers/RankingController.php @@ -65,7 +65,7 @@ public function update(UpdateRankingRequest $request, $id): JsonResponse session()->flash('success', 'Ranking was succesfully updated!'); return response()->json([ - 'redirect' => route('profile.show', ['id' => $ranking->getKey()]), + 'redirect' => route('profile.show', ['id' => auth()->user()->spotify_id]), ], 200); }