Skip to content

fix: correct game summary link in player live view#2460

Open
Adarshkumar0509 wants to merge 4 commits intoOWASP:masterfrom
Adarshkumar0509:fix/player-game-summary-link
Open

fix: correct game summary link in player live view#2460
Adarshkumar0509 wants to merge 4 commits intoOWASP:masterfrom
Adarshkumar0509:fix/player-game-summary-link

Conversation

@Adarshkumar0509
Copy link
Contributor

Fixes #2458

Problem

The "Go to game summary" button in player_live/show.html.heex used
a relative URL "../" which caused an HTTP 500 error instead of
navigating to the game summary page.

"../" from /games/{game_id}/players/{player_id} resolves to
/games/{game_id}/players/ which throws a 500 error.

Fix

Replaced "../" with the correct Phoenix route helper:
~p"/games/#{@player.game_id}"

Changes

  • copi.owasp.org/lib/copi_web/live/player_live/show.html.heex

@Adarshkumar0509
Copy link
Contributor Author

@sydseter the pr is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: "Go to game summary" link navigates to wrong page after game finishes

1 participant