Skip to content

Commit

Permalink
Merge pull request #32 from kyledoesdev/hotfix/fix-bad-redirect
Browse files Browse the repository at this point in the history
fix bad redirect after save
  • Loading branch information
kyledoesdev authored Oct 16, 2024
2 parents 8cab40f + 09b0167 commit d25b290
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 d25b290

Please sign in to comment.