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';
33const WithInitialPropsPage = ( { data } : { data : string } ) => (
44 < >
55 < 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 >
79 < a id = "server-side-props-page" > Go to withServerSideProps</ a >
810 </ Link >
911 </ >
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import Link from 'next/link';
33const WithServerSidePropsPage = ( { data } : { data : string } ) => (
44 < >
55 < 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 >
79 < a id = "initial-props-page" > Go to withInitialProps</ a >
810 </ Link >
911 </ >
Original file line number Diff line number Diff line change 11import Link from 'next/link' ;
22
33const 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 >
56 < a id = "healthy" > Healthy</ a >
67 </ Link >
78) ;
Original file line number Diff line number Diff line change 11import Link from 'next/link' ;
22
33const 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 >
56 < a id = "alsoHealthy" > AlsoHealthy</ a >
67 </ Link >
78) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ const WithStaticProps = ({ items }: Props) => (
1919 < p > You are currently on: /users</ p >
2020 < List items = { items } />
2121 < 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 >
2325 < a > Go home</ a >
2426 </ Link >
2527 </ p >
You can’t perform that action at this time.
0 commit comments