As a user, clicking the EuchreCamp wordmark when logged in should take me to my homepage #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Currently, clicking the EuchreCamp wordmark in the navigation bar always links to
/(the public homepage showing Top 10 players, recent tournament, and club info). This is the correct behavior for unauthenticated users, but logged-in users should be directed to a more relevant page.Acceptance Criteria
/(public homepage with Top 10 players, recent tournament, club info, Sign In/Create Account buttons)/players/{playerId}/profile(their player profile)/admin(admin dashboard)Current Behavior
src/components/Navigation.tsx:46- Wordmark always links tohref="/"regardless of login statesrc/app/page.tsx- Homepage shows public content even when logged inImplementation Notes
src/app/admin/page.tsx:44) already has logic to redirect users to their player profile if they have a playerId✅ Closed - Fully Implemented
The wordmark navigation feature is fully implemented:
src/app/wordmark-redirect/route.ts- Server-side redirect based on user rolesrc/components/Navigation.tsx:46- Wordmark links to/wordmark-redirecte2e/cucumber/features/wordmark-navigation.feature- 3 Cucumber scenarios, all passingVerified with Cucumber tests:
//players/{playerId}/profile/adminMerged via PR #27 (
bb6be24).