Skip to content

Commit

Permalink
Fixes navbar URL
Browse files Browse the repository at this point in the history
  • Loading branch information
samglover committed Sep 10, 2024
1 parent 8fc93b7 commit 5c8dc00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<nav
Expand Down
1 change: 1 addition & 0 deletions src/app/components/TopicCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const TopicCard = ({
}
className="form-tag text-decoration-none"
href={
'/' +
path +
'/forms/' +
toUrlFriendlyString(interview.metadata.title)
Expand Down

0 comments on commit 5c8dc00

Please sign in to comment.