Skip to content

Commit a09e55d

Browse files
committed
propper page linking in Next js using Link to utilize base path in next config
1 parent f30d646 commit a09e55d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

codecrusaders/app/layout.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Metadata } from "next"
22
import { Geist, Geist_Mono } from "next/font/google"
33
import "./globals.css"
4+
import Link from "next/link"
45

56
const geistSans = Geist({
67
variable: "--font-geist-sans",
@@ -32,22 +33,25 @@ export default function RootLayout({
3233
<nav>
3334
<ul>
3435
<li>
35-
<a href="/">Home</a>
36+
<Link href="/">Home</Link>
3637
</li>
3738
<li>
38-
<a href="/about">About</a>
39+
<Link href="/about">About</Link>
3940
</li>
4041
<li>
41-
<a href="/team">Team</a>
42+
<Link href="/team">Team</Link>
4243
</li>
4344
<li>
44-
<a href="/reports_and_metrics">Metrics and Reports</a>
45+
<Link href="/reports_and_metrics">Metrics and Reports</Link>
4546
</li>
4647
<li>
47-
<a href="/process">Process and Plan</a>
48+
<Link href="/process">Process and Plan</Link>
4849
</li>
4950
<li>
50-
<a href="https://github.com/JacRIT/Team3.github.io/wiki">
51+
<a
52+
target="_blank"
53+
href="https://github.com/JacRIT/Team3.github.io/wiki"
54+
>
5155
Wiki/Documentation
5256
</a>
5357
</li>

0 commit comments

Comments
 (0)