-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into wbinnssmith/session-id
- Loading branch information
Showing
8 changed files
with
192 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
...c/shared/lib/router/utils/resolve-href.ts → packages/next/src/client/resolve-href.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function RootLayout({ children }) { | ||
return ( | ||
<html> | ||
<body>{children}</body> | ||
</html> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
test/e2e/skip-trailing-slash-redirect/app/app/with-app-dir/another/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page(props) { | ||
return ( | ||
<> | ||
<p id="another">another page</p> | ||
<Link href="/with-app-dir" id="to-index"> | ||
to index | ||
</Link> | ||
<br /> | ||
</> | ||
) | ||
} |
13 changes: 13 additions & 0 deletions
13
test/e2e/skip-trailing-slash-redirect/app/app/with-app-dir/blog/[slug]/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page(props) { | ||
return ( | ||
<> | ||
<p id="blog">blog page</p> | ||
<Link href="/with-app-dir" id="to-index"> | ||
to index | ||
</Link> | ||
<br /> | ||
</> | ||
) | ||
} |
21 changes: 21 additions & 0 deletions
21
test/e2e/skip-trailing-slash-redirect/app/app/with-app-dir/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Link from 'next/link' | ||
|
||
export default function Page(props) { | ||
return ( | ||
<> | ||
<p id="index">index page</p> | ||
<Link href="/with-app-dir/another" id="to-another"> | ||
to another | ||
</Link> | ||
<br /> | ||
<Link href="/with-app-dir/another/" id="to-another-with-slash"> | ||
to another | ||
</Link> | ||
<br /> | ||
<Link href="/with-app-dir/blog/first" id="to-blog-first"> | ||
to /blog/first | ||
</Link> | ||
<br /> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters