Uh oh!
There was an error while loading. Please reload this page.
feat(home): auth-aware landing page navigation - #3743
Conversation
- Redirect authenticated users from / to /workspace via middleware (?home param bypasses) - Show "Go to App" instead of "Log in / Get started" in navbar for authenticated users - Logo links to /?home for authenticated users to stay in marketing context - Settings "Home Page" button opens /?home - Handle isPending session state to prevent CTA button flash
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Authenticated sessions hitting Written by Cursor Bugbot for commit a677d8d. Configure here. |
Greptile SummaryThis PR introduces auth-aware navigation across the landing and home pages. Authenticated users visiting Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User (Browser)
participant M as Middleware (proxy.ts)
participant LP as Landing Page (/)
participant WS as Workspace (/workspace)
Note over U,WS: Unauthenticated user
U->>M: GET /
M->>LP: next() — no session, show landing page
LP-->>U: Nav shows "Log in / Get started"
Note over U,WS: Authenticated user — direct visit
U->>M: GET /
M->>WS: redirect(/workspace) — has session, no ?home
WS-->>U: Workspace UI
Note over U,WS: Authenticated user — intentional landing page browse
U->>M: GET /?home
M->>LP: next() — has session BUT ?home present, bypass redirect
LP-->>U: Nav shows "Go to App", logo → /?home, Pricing → /?home#pricing
Note over U,WS: Authenticated user via Settings "Home Page" button
U->>M: GET /?home (new tab)
M->>LP: next() — ?home bypass
LP-->>U: Landing page in marketing context
Reviews (3): Last reviewed commit: "fix(home): preserve ?home param in nav l..." | Re-trigger Greptile |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Mar 24, 2026
waleedlatif1
commented
Mar 24, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Mar 24, 2026
@cursor review |
waleedlatif1
commented
Mar 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
* feat(home): auth-aware landing page navigation - Redirect authenticated users from / to /workspace via middleware (?home param bypasses) - Show "Go to App" instead of "Log in / Get started" in navbar for authenticated users - Logo links to /?home for authenticated users to stay in marketing context - Settings "Home Page" button opens /?home - Handle isPending session state to prevent CTA button flash * lint * fix(home): remove stale ?from=nav params in landing nav * fix(home): preserve ?home param in nav links during session pending state * lint
* feat(home): auth-aware landing page navigation - Redirect authenticated users from / to /workspace via middleware (?home param bypasses) - Show "Go to App" instead of "Log in / Get started" in navbar for authenticated users - Logo links to /?home for authenticated users to stay in marketing context - Settings "Home Page" button opens /?home - Handle isPending session state to prevent CTA button flash * lint * fix(home): remove stale ?from=nav params in landing nav * fix(home): preserve ?home param in nav links during session pending state * lint
Summary
/are redirected to/workspacevia middleware (replaces old?fromparam with?homebypass)/?homefor authenticated users so they stay in marketing context/?hometo let users browse landing without redirectisPendingsession state to prevent CTA button flashType of Change
Testing
Tested manually
Checklist