Skip to content

[BUG] Create post page redirects to home on load #71

@LoackyBit

Description

@LoackyBit

Version/Commit

74a2fc1

Steps To Reproduce

  1. Navigate to https://crowd-up00.vercel.app/create (or click the "Create Post" button on home page)
  2. Observe the page loading
  3. The browser automatically redirects to https://crowd-up00.vercel.app/ (home page)

Expected Behavior

The create post page should load successfully, displaying the post creation form with all fields:

  • Post type selection (Bug Report, Feature Request, Complaint)
  • Company/App field with search functionality
  • Title field (max 150 characters)
  • Description field (max 2000 characters) with markdown support
  • Priority selector (Low, Medium, High, Critical)
  • Publish and Cancel buttons

Actual Behavior

The page redirects to home immediately after loading, regardless of authentication status. The user is authenticated on the home page and can see other authenticated features (profile menu, etc.), but cannot access the create post page. The redirect happens before the form can be displayed.

Screenshots

No response

Browser

Chromium Browser

Additional Context

Related Information

Issue not present in: commit b1e02db
Current branch: main
Files affected:

  • src/app/create/page.tsx
  • src/lib/services/auth.service.ts (getCurrentUserId function)

Related to: The "Create Post" button on the home page is also unusable due to this redirect issue.

Severity: CRITICAL - Blocks core functionality of creating posts on the platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛Something isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions