Update NavigationBar.tsx

This commit is contained in:
Damien Ostler 2024-05-27 23:58:58 -04:00
parent de0a5a8e73
commit 82728cbc97

View File

@ -25,7 +25,7 @@ export default async function AuthButton() {
// ...
const heads = headers()
const url = heads.get('x-url')
const url = heads.get('next-url')
if(url == null) throw new Error('No URL found')
const urlObj = new URL(url);
const currentPage = urlObj.pathname;