-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathindex.js
35 lines (34 loc) · 1.17 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import Link from 'next/link'
export default function Home() {
return (
<div>
<p className="title">Home Page</p>
<Link href="/old-home" id="old-home">
Redirect me to a new version of a page
</Link>
<div />
<Link href="/old-home?override=external" id="old-home-external">
Redirect me to an external site
</Link>
<div />
<Link href="/blank-page?foo=bar">Redirect me with URL params intact</Link>
<div />
<Link href="/redirect-to-google">Redirect me to Google (with no body response)</Link>
<div />
<Link href="/redirect-to-google">Redirect me to Google (with no stream response)</Link>
<div />
<Link href="/redirect-me-alot">Redirect me alot (chained requests)</Link>
<div />
<Link href="/infinite-loop">Redirect me alot (infinite loop)</Link>
<div />
<Link href="/to?pathname=/api/ok" locale="nl" id="link-to-api-with-locale">
Redirect me to api with locale
</Link>
<div />
<Link href="/to?pathname=/old-home" id="link-to-to-old-home">
Redirect me to a redirecting page of new version of page
</Link>
<div />
</div>
)
}