Describe the bug
While reading through the codebase I noticed that player_live/show.ex has three places where error redirects return {:ok, redirect(socket, to: "/error")} instead of the correct {:noreply, redirect(socket, to: "/error")}. In Phoenix LiveView, callbacks like handle_params and handle_info must always return {:noreply, socket} — returning {:ok, socket} is incorrect and will cause the redirect to not work as expected when a player or game is not found.
To Reproduce
Steps to reproduce the behavior:
- Visit https://copi.owasp.org/games/new and create a game
- Copy the game ID from the URL
- Visit /games/:game_id/players/invalid-id directly
- See HTTP 500 instead of proper error redirect
Screenshots

Expected behavior
The error redirects should return {:noreply, redirect(socket, to: "/error")} just like game_live/show.ex already does correctly.
Desktop (please complete the following information):
- OS: windows 11
- Browser: chrome
- Version: N/A
Additional context
The bug exists in 3 places in lib/copi_web/live/player_live/show.ex:
- handle_params when player is not found
- handle_params when game is not found
- handle_info when player is not found after game update
Are you going to work on fixing this?
Describe the bug
While reading through the codebase I noticed that player_live/show.ex has three places where error redirects return {:ok, redirect(socket, to: "/error")} instead of the correct {:noreply, redirect(socket, to: "/error")}. In Phoenix LiveView, callbacks like handle_params and handle_info must always return {:noreply, socket} — returning {:ok, socket} is incorrect and will cause the redirect to not work as expected when a player or game is not found.
To Reproduce
Steps to reproduce the behavior:
Screenshots

Expected behavior
The error redirects should return {:noreply, redirect(socket, to: "/error")} just like game_live/show.ex already does correctly.
Desktop (please complete the following information):
Additional context
The bug exists in 3 places in lib/copi_web/live/player_live/show.ex:
Are you going to work on fixing this?