Skip to content

Commit 8777de4

Browse files
committed
.
1 parent 4f373f1 commit 8777de4

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

components/app-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export function AppSidebar() {
297297
</CollapsibleTrigger>
298298
<CollapsibleContent>
299299
<SidebarMenuSub>
300-
<Link href="https://mmlab.hk/CCAI9025" target="_blank" className="p-2 rounded-sm hover:bg-o-blue/3 select-none">
300+
<Link href="/teaching/CCAI9025/" target="_blank" className="p-2 rounded-sm hover:bg-o-blue/3 select-none">
301301
HKU CCAI9025
302302
</Link>
303303
</SidebarMenuSub>

components/redirect.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@ export default function Redirect() {
297297

298298

299299

300+
if (
301+
pathname.toLowerCase().startsWith('/CCAI9025') ||
302+
pathname.toLowerCase().startsWith('/teaching/CCAI9025')
303+
) {
304+
redirect('https://mmlab.hk/CCAI9025')
305+
}
306+
307+
308+
300309
// misc.
301310
if (
302311
pathname.toLowerCase().startsWith('/lihongyang')

0 commit comments

Comments
 (0)