Skip to content

Fix the routing of the "Go to the leaderboard" button #3

@vector1505

Description

@vector1505

🐛 Bug Report: Fix the routing of the "Go to the leaderboard" button

Description

After completing the Sudoku, clicking the "Go to the leaderboard" button does not route the user correctly to the leaderboard page. Instead of being redirected to see their ranking and completion status, the navigation fails or points elsewhere.

Problem

  • Users expect to be redirected to the Leaderboard page immediately after finishing a Sudoku.
  • Currently, the routing logic is broken/misconfigured.
  • This reduces the usability of the game since players cannot easily see where they stand.

Expected Behavior

  • Once the player completes the Sudoku puzzle and clicks "Go to the leaderboard", they should be routed to the Leaderboard view without errors.

Steps to Reproduce

  1. Complete any Sudoku puzzle.
  2. Click the "Go to the leaderboard" button.
  3. Observe that the routing does not correctly navigate to the leaderboard page.

Possible Fix

  • Check and update the routing logic in SudokuMasterApp.jsx.
  • Ensure the leaderboard path is correctly defined in your router configuration.
  • Verify that the button’s onClick or navigation handler points to the correct route.

Additional Context

  • Issue might be related to incorrect useNavigate usage or Route path mismatch.
  • Double-check route definitions in App.jsx or wherever routing is handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions