From 8e329befda8769c6f32847064facaa1a5609f330 Mon Sep 17 00:00:00 2001 From: Rebecca-Chou Date: Sun, 27 Mar 2022 20:38:11 +0800 Subject: [PATCH] fix archive link bug --- components/ArchivePage.tsx | 2 +- pages/about/executives/[year]/index.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/ArchivePage.tsx b/components/ArchivePage.tsx index e323b048..1247dc64 100644 --- a/components/ArchivePage.tsx +++ b/components/ArchivePage.tsx @@ -32,7 +32,7 @@ export function ArchivePage({ items, type }: Props) { const url = type !== "executives" ? `/${type}/${year}/${term}` - : `${year}/${term}`; + : `/about/${type}/${year}/${term}`; return (
  • diff --git a/pages/about/executives/[year]/index.tsx b/pages/about/executives/[year]/index.tsx index b052a79a..7827c7e2 100644 --- a/pages/about/executives/[year]/index.tsx +++ b/pages/about/executives/[year]/index.tsx @@ -16,7 +16,6 @@ interface Props { } export default function Year(props: Props) { - console.log(props.terms); return (
    {["Executives", props.year]}