Update NavigationBar.tsx

This commit is contained in:
Damien Ostler 2024-05-28 00:09:23 -04:00
parent ee1272b520
commit 2c036794ff

View File

@ -22,10 +22,7 @@ export default async function AuthButton() {
// ... // ...
const url = window.location.href;
console.log(heads)
const url = heads.get('next-url')
if(url == null) throw new Error('No URL found')
const urlObj = new URL(url); const urlObj = new URL(url);
const currentPage = urlObj.pathname; const currentPage = urlObj.pathname;
if(user){ if(user){