fix archive link bug

This commit is contained in:
Rebecca-Chou 2022-03-27 20:38:11 +08:00
parent 4040cdc232
commit 8e329befda
2 changed files with 1 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export function ArchivePage({ items, type }: Props) {
const url =
type !== "executives"
? `/${type}/${year}/${term}`
: `${year}/${term}`;
: `/about/${type}/${year}/${term}`;
return (
<li key={url}>
<Link href={url}>

View File

@ -16,7 +16,6 @@ interface Props {
}
export default function Year(props: Props) {
console.log(props.terms);
return (
<div className={styles.main}>
<Title>{["Executives", props.year]}</Title>