Skip to content

[FRONTEND] Tournament detail page ignores the dynamic URL parameter #320

@Hydrax117

Description

@Hydrax117

File: src/app/tournaments/[id]/page.tsx
Priority: Major
Type: Bug

Description:
The [id] route parameter is never read. tournamentData is a hardcoded constant, so every URL (/tournaments/1, /tournaments/99, /tournaments/abc) renders the exact same "ArenaX eFootball Masters Cup" data. The page is non-functional as a dynamic route.

Acceptance criteria:

  • params.id is read from the route
  • Tournament data is fetched from the API using the ID (or looked up from mock data by ID as an interim step)
  • If no tournament is found for the given ID, a 404 or "Tournament not found" state is shown

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions