Update [[...slug]].js
Ok this should be the last one. Fixes error where the index markdown file ("software developers") doesn't highlight appropriately
commitcdef47542e451fbfde6cf66a17c54e7cc030c2de
authorSamuel Henriquez <70870763+humanizersequel@users.noreply.github.com>
dateWed 12 Apr 2023, 23:48 (4 years ago)
parent712f367
pages/campus/[[...slug]].js+1−1
@@ -198,7 +198,7 @@ export default function Home({
198198const childPages = (thisLink, children, level = 0) => {
199199 const router = useRouter();
200200
201− const isThisPage = router.asPath === thisLink || router.asPath === `${thisLink}`;
201+ const isThisPage = router.asPath === thisLink || router.asPath === `${thisLink}#reading`;
202202
203203 const pageItemClasses = classnames({
204204 "text-base type-ui": level === 0,