mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-03-14 10:05:04 +00:00
Update NavigationBar.tsx
This commit is contained in:
parent
de0a5a8e73
commit
82728cbc97
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user