Skip to content

[BUG] Browser Back Button Does Not Close Create Custom Lobby Panel #1342

@kanikasharma-18

Description

@kanikasharma-18

Bug Description

When a user opens the Create Custom Lobby panel from the Friend Challenge section and then presses the browser's back button, the panel does not close as expected. Instead, the application navigates directly to another page (such as Arena Home or a previous route), resulting in inconsistent navigation behavior.

Steps to Reproduce

  1. Navigate to the Arena Home page.
  2. Open the Friend Challenge section.
  3. Click Create Custom Lobby.
  4. Wait for the custom lobby panel/card to open.
  5. Press the browser's Back button.
  6. Observe the navigation behavior.

Expected Behavior

Pressing the browser's back button should close the Create Custom Lobby panel and return the user to the previous Friend Challenge view while remaining on the current Arena page.

Actual Behavior

The browser's back button does not close the Create Custom Lobby panel. Instead, it navigates away from the current view and redirects the user to another page, causing unexpected navigation behavior.

Environment

OS: Windows 11 Browser: Chrome (latest version) Node.js: N/A (Frontend routing/history issue)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions