rsnext/test/e2e/app-dir
Wyatt Johnson b8d785d286
Locale fixes for App Directory (#47429)
Fixes issue with app directory that caused problems with `i18n` was
enabled. Previously, when you accessed a URL like `/blog/first-issue`,
you would expect it to hit the app route at `/app/blog/[slug]/page.tsx`,
but instead it internally attempted to access
`/app/{defaultLocale}/blog/[slug]/page.tsx` (where `{defaultLocale}` is
set in `next.config.js` via `i18n.defaultLocale`). This is because while
the path did not assume the locale, the domain/default was enough to
suggest it, causing the mismatch.

This adds a new internal parameter for tracking this _default_
assignment so it can be handled by the matcher correctly.

Fixes #46814
Fixes #46841
fix NEXT-777 ([link](https://linear.app/vercel/issue/NEXT-777))
fix NEXT-834 ([link](https://linear.app/vercel/issue/NEXT-834))

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-03-24 13:06:27 +01:00
..
actions Finalize HOC support with server entries and add encodeReply & decodeReply (#47438) 2023-03-24 13:01:10 +01:00
app add useReportWebVitals that makes use of web-vitals package (#47319) 2023-03-24 10:13:50 +00:00
app-a11y Implement route announcer for app dir (#47018) 2023-03-13 13:09:22 -07:00
app-alias Add experimental route type checking (#45761) 2023-02-11 15:06:39 +00:00
app-basepath Prefix basePath in navigate and prefix methods in app router (#45771) 2023-02-10 13:01:00 +00:00
app-css Fix CSS not being bundled in app dir (#45787) 2023-03-17 17:38:19 +00:00
app-edge Pass through original matcher source in manifest (#46753) 2023-03-03 16:55:41 -08:00
app-edge-global Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-external Fix client boundary defined in a module (#46171) 2023-02-21 15:20:45 +00:00
app-middleware Update client router filter to separate redirects handling (#46752) 2023-03-03 16:02:02 -08:00
app-prefetch Add missing isRootLayout when creating optimistic tree (#45899) 2023-02-14 14:06:58 +01:00
app-rendering Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
app-routes Fix bad route path for custom metadata routes (#47286) 2023-03-21 15:55:32 +00:00
app-routes-trailing-slash Fix route.js trailingSlash handling (#46185) 2023-02-21 17:19:56 -08:00
app-static Add test for force-dynamic and catch-all routes (#47418 2023-03-23 15:53:51 +01:00
app-validation Add Zod and router state validation (#46962) 2023-03-10 13:37:45 +00:00
asset-prefix Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
async-component-preload Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
autoscroll-with-css-modules Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
back-button-download-bug Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
create-next-app-template Migrate create-next-app and e2e tests to Metadata API. (#45819) 2023-02-23 23:40:06 +00:00
create-root-layout Migrate create-next-app and e2e tests to Metadata API. (#45819) 2023-02-23 23:40:06 +00:00
dynamic Separate next/dynamic implementation for app and pages (#45565) 2023-02-04 01:45:35 +00:00
dynamic-href Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
edge-runtime-node-compatibility [edge] limit the api surface of util (#47292) 2023-03-20 10:29:00 +01:00
global-error Update test env variable passing (#44912) 2023-01-15 23:20:16 -08:00
head Add ISR handling for app routes (#46133) 2023-02-21 15:25:42 -08:00
hooks Update failing e2e checks (#47423) 2023-03-22 15:32:06 -07:00
i18n-hybrid Locale fixes for App Directory (#47429) 2023-03-24 13:06:27 +01:00
import Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
interpolability-with-pages Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
layout-params Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
mdx Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> 2023-02-11 13:37:00 +01:00
metadata Add content hash for dynamic og image routes (#47440) 2023-03-23 17:38:42 +01:00
metadata-dynamic-routes Add content hash for dynamic og image routes (#47440) 2023-03-23 17:38:42 +01:00
navigation Add default meta tags to error page (#47404) 2023-03-22 22:44:45 +01:00
next-font Remove experimental fontLoaders option from next.config.js (#46886) 2023-03-13 21:34:43 +00:00
next-image Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00
not-found Extend not-found.js to catch all unmatched routes (#47328) 2023-03-22 22:16:50 +00:00
pages-to-app-routing Add client router filter handling (#46283) 2023-02-22 22:02:31 -08:00
parallel-routes-and-interception v13.2.5-canary.14 2023-03-23 10:15:46 +01:00
rewrites-redirects Update test env for E2E deploy mode (#44937) 2023-01-16 15:39:54 -08:00
root-layout Test navigation between multiple root layouts (#43762) 2023-01-05 13:27:29 +01:00
root-layout-redirect Catch redirect() in root layout (#47345) 2023-03-22 09:34:50 +01:00
route-page-manifest-bug Fix manifest error when using route.js (#46102) 2023-02-18 20:31:49 +01:00
router-autoscroll Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts (#45487) 2023-02-07 12:03:18 +00:00
rsc-basic Adjust API route loader (#46726 2023-03-04 01:18:07 +01:00
searchparams-static-bailout Opt-in to dynamic rendering when reading searchParams (#46205) 2023-03-16 21:46:35 +01:00
similar-pages-paths Fix conflict dev entry key between app and pages (#46832) 2023-03-07 12:27:10 -08:00
test-template/{{ toFileName name }} Add additional tests for @next/mdx (#45585)Co-authored-by: Shu Ding <g@shud.in> 2023-02-11 13:37:00 +01:00
trailingslash Change NextInstance.fetch Signature (#44575) 2023-01-05 16:31:03 +01:00
underscore-ignore-app-paths Ignore folders prefixed by underscore (_) in App Router (#47439) 2023-03-24 12:53:11 +01:00
use-params Add useParams() (#47373) 2023-03-22 09:26:19 +00:00
use-selected-layout-segment-s Update failing e2e deploy test (#47453) 2023-03-23 12:29:51 -07:00
with-babel Move tests into their test folder (#44183) 2022-12-21 14:16:52 +01:00