fix: update registration redirect and wordmark navigation

- Simplify registration redirect after session refresh
- Update wordmark to use dynamic href based on session/role
- Add anchor tag for wordmark to avoid Next.js Link issues
This commit is contained in:
2026-04-25 21:53:27 -07:00
parent 9fbdc5e51f
commit 1d6e15c0ab
2 changed files with 17 additions and 5 deletions
+12 -2
View File
@@ -38,14 +38,24 @@ export default function Navigation() {
window.location.href = '/auth/login'
}
// Determine wordmark href based on session and role
const wordmarkHref = session
? (userRole === "club_admin" || userRole === "site_admin")
? "/admin"
: "/rankings"
: "/";
return (
<nav className="bg-white shadow-sm">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between h-16">
<div className="flex items-center">
<Link href="/" className="text-xl font-bold text-gray-900">
<a
href={wordmarkHref}
className="text-xl font-bold text-gray-900 no-underline"
>
EuchreCamp
</Link>
</a>
<div className="hidden md:ml-6 md:flex md:space-x-8">
<Link
href="/rankings"