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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user