From 5c8dc0000033a99f73ab79be5153ad7f5924de8f Mon Sep 17 00:00:00 2001 From: samglover Date: Tue, 10 Sep 2024 16:49:24 -0500 Subject: [PATCH] Fixes navbar URL --- src/app/components/NavigationBar.tsx | 5 ++++- src/app/components/TopicCard.tsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/components/NavigationBar.tsx b/src/app/components/NavigationBar.tsx index 28a04f4..59e8ddb 100644 --- a/src/app/components/NavigationBar.tsx +++ b/src/app/components/NavigationBar.tsx @@ -16,11 +16,14 @@ interface PageProps { }; } + export default function NavigationBar({ params }: PageProps) { - const { path = '' } = useParams(); + let { path = '' } = useParams(); + console.log(path); let abbrev = ''; if (typeof path === 'string' && path.trim().length > 0) { abbrev = ' ' + path.toUpperCase(); + path = '/' + path; } return (