Library link as a href, Link wont add slash

This commit is contained in:
Chris Hunt 2023-02-13 11:44:39 +00:00
parent 9bf7937414
commit 5d09790329
No known key found for this signature in database

View File

@ -44,7 +44,7 @@ export default function Header({ searchText, changeSearch }) {
</div>
</div>
<nav className='relative z-10 mx-12'>
<Link href="/" className={'p-4 inline-block rounded-full border border-solid' + (router.pathname == "/" ? ' border-white/30' : ' border-transparent')}>Library</Link>
<a href="/" className={'p-4 inline-block rounded-full border border-solid' + (router.pathname == "/" ? ' border-white/30' : ' border-transparent')}>Library</a>
<Link href="/new" className={'p-4 inline-block rounded-full border border-solid' + (router.pathname.startsWith("/new") ? ' bg-black/10 border-white/30' : ' border-transparent')}>New</Link>
</nav>
<div className="grow flex justify-center relative z-10">