diff --git a/app/src/components/Card.tsx b/app/src/components/Card.tsx index 9c335b6..6e0e46e 100644 --- a/app/src/components/Card.tsx +++ b/app/src/components/Card.tsx @@ -47,7 +47,7 @@ export default function Card( props.commission, router.locale ).small_description; - link = `/commission/${props.commission.slug}`; + link = `/commissions/${props.commission.slug}`; } else { img = props.img; title = props.title; diff --git a/app/src/components/NavigationBar.tsx b/app/src/components/NavigationBar.tsx index ad5a78c..25bdbcc 100644 --- a/app/src/components/NavigationBar.tsx +++ b/app/src/components/NavigationBar.tsx @@ -4,6 +4,7 @@ import styles from "@/styles/NavigationBar.module.scss"; import { Commission } from "@/types/aliases"; import { Schema } from "@/types/schema"; import Link from "next/link"; +import { useRouter } from "next/router"; type LinkRef = { title: string; @@ -29,7 +30,8 @@ export default function NavigationBar(props: { commissions?: Commission[]; langs: Schema["languages"]; }) { - console.log(props.langs); + const router = useRouter(); + return (