File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed
packages/nextjs/test/integration/pages Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import Link from 'next/link';
3
3
const WithInitialPropsPage = ( { data } : { data : string } ) => (
4
4
< >
5
5
< h1 > WithInitialPropsPage { data } </ h1 >
6
- < Link href = "/1337/withServerSideProps" >
6
+ { /*
7
+ // @ts -ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */ }
8
+ < Link href = "/1337/withServerSideProps" passHref legacyBehavior >
7
9
< a id = "server-side-props-page" > Go to withServerSideProps</ a >
8
10
</ Link >
9
11
</ >
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import Link from 'next/link';
3
3
const WithServerSidePropsPage = ( { data } : { data : string } ) => (
4
4
< >
5
5
< h1 > WithServerSidePropsPage { data } </ h1 >
6
- < Link href = "/3c2e87573d/withInitialProps" >
6
+ { /*
7
+ // @ts -ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */ }
8
+ < Link href = "/3c2e87573d/withInitialProps" passHref legacyBehavior >
7
9
< a id = "initial-props-page" > Go to withInitialProps</ a >
8
10
</ Link >
9
11
</ >
Original file line number Diff line number Diff line change 1
1
import Link from 'next/link' ;
2
2
3
3
const HealthyPage = ( ) : JSX . Element => (
4
- < Link href = "/healthy" >
4
+ // @ts -ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag
5
+ < Link href = "/healthy" passHref legacyBehavior >
5
6
< a id = "healthy" > Healthy</ a >
6
7
</ Link >
7
8
) ;
Original file line number Diff line number Diff line change 1
1
import Link from 'next/link' ;
2
2
3
3
const HealthyPage = ( ) : JSX . Element => (
4
- < Link href = "/alsoHealthy" >
4
+ // @ts -ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag
5
+ < Link href = "/alsoHealthy" passHref legacyBehavior >
5
6
< a id = "alsoHealthy" > AlsoHealthy</ a >
6
7
</ Link >
7
8
) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ const WithStaticProps = ({ items }: Props) => (
19
19
< p > You are currently on: /users</ p >
20
20
< List items = { items } />
21
21
< p >
22
- < Link href = "/" >
22
+ { /*
23
+ // @ts -ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */ }
24
+ < Link href = "/" passHref legacyBehavior >
23
25
< a > Go home</ a >
24
26
</ Link >
25
27
</ p >
You can’t perform that action at this time.
0 commit comments