Skip to content

Redirect Logged-In Users to Home Page #135

@yep-yogesh

Description

@yep-yogesh

Description

Currently, all users land on the Landing Page by default, regardless of whether they are logged in or not.

To improve user experience:

  • Logged-in users should be taken directly to the Home Page (where they can immediately create/join a room with their details pre-filled).
  • New or logged-out users should be shown the Landing Page, which includes:
    • Smooth animated background blobs.
    • Login button.
    • Explanation of what Guessync is and how to get started.

This ensures a seamless experience for returning players, while still giving new users an introduction to the platform.


Expected Behavior

  • On site load:
    • If logged in (valid session token present):
      • Redirect to /landing.
      • Pre-fill user details (username, avatar, user ID) in the input fields.
    • If not logged in:
      • Stay on /.
      • See animations, explanation of Guessync, and login option.

Current Behavior

  • All users (new or logged in) start at the **Landing Page route - "/" **.
  • Returning users must click Login again to access Home.

Deliverables

  • Smooth redirect behavior implemented.
  • Landing Page visible only to new/logged-out users.
  • Logged-in users skip Landing and go directly to Home.
  • Screenrecording of a tested flow for both states (new user vs returning user).

Logged In already

Display this page on entry to site

Image

New user (Not logged in)

Display this page on entry to site

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions