Skip to content

Commit

Permalink
fix bad redirect after save
Browse files Browse the repository at this point in the history
  • Loading branch information
kyledoesdev committed Oct 16, 2024
1 parent 8cab40f commit 09b0167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/RankingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 09b0167

Please sign in to comment.