Skip to content

Commit

Permalink
fix: fix navbar links being relative instead of absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
corp-0 committed Mar 9, 2024
1 parent 9e6af2d commit 00d5b3f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions app/common/defaultNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@ export default function DefaultNavbar() {

const loggedOptions = () => (
<>
<Dropdown.Item>My Account</Dropdown.Item>
{/* hidden while we work on it */}
{/*<Dropdown.Item>My Account</Dropdown.Item>*/}
<Dropdown.Item>
<Link href='logout'>Logout</Link>
<Link href='/logout'>Logout</Link>
</Dropdown.Item>
</>
)

const notLoggedOptions = () => (
<>
<Dropdown.Item>
<Link href='login'>Login/Register</Link>
<Link href='/login'>Login/Register</Link>
</Dropdown.Item>
<Dropdown.Divider/>
<Dropdown.Item>
<Link href='reset-password'>Reset password</Link>
<Link href='/reset-password'>Reset password</Link>
</Dropdown.Item>
</>
)
Expand All @@ -50,10 +51,10 @@ export default function DefaultNavbar() {
<Link href='/'>
<p>Home</p>
</Link>
<Link href='blog'>
<Link href='/blog'>
<p>Blog</p>
</Link>
<Link href='changelog'>
<Link href='/changelog'>
<p>Changelog</p>
</Link>
<Navbar.Link href={playerWiki} target="_blank">
Expand Down

0 comments on commit 00d5b3f

Please sign in to comment.