forked from vercel/next.js
/
index.js
37 lines (36 loc) · 1.06 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
36
37
import Link from 'next/link'
export default function Home() {
return (
<div>
<p className="title">Home Page</p>
<Link href="/redirects/old-home">
<a>Redirect me to a new version of a page</a>
</Link>
<div />
<Link href="/redirects/blank-page?foo=bar">
<a>Redirect me with URL params intact</a>
</Link>
<div />
<Link href="/redirects/redirect-to-google">
<a>Redirect me to Google (with no body response)</a>
</Link>
<div />
<Link href="/redirects/redirect-to-google">
<a>Redirect me to Google (with no stream response)</a>
</Link>
<div />
<Link href="/redirects/redirect-me-alot">
<a>Redirect me alot (chained requests)</a>
</Link>
<div />
<Link href="/redirects/infinite-loop">
<a>Redirect me alot (infinite loop)</a>
</Link>
<div />
<Link href="/redirects/to?pathname=/api/ok" locale="nl">
<a id="link-to-api-with-locale">>Redirect me to api with locale</a>
</Link>
<div />
</div>
)
}