rsnext/test/integration/client-navigation/pages
Sukka c85c41043d
fix(#37981): handle legacy link behavior with number type children (#38013)
## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

Fixes #37981.

When handling the legacy link behavior on the current version of Next.js, it only wraps single string child in `<a>` tag. The PR fixes the issue by also wrap single number child in `<a>` tag, too.
2022-06-25 20:07:40 +00:00
..
dynamic Allow absolute urls in router and Link (#15792) 2020-08-05 18:12:17 +00:00
nav Update to process redirects/rewrites for _next/data with middleware (#37574) 2022-06-10 12:35:12 -05:00
nested-cdm Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
nested-index/index Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
_document.js Place 'charset' element at the top of <head> (#28119) 2022-02-06 13:51:51 -06:00
absolute-url.js fix(Link): Do not ignore onMouseEnter prop with absolute href (#32012) 2021-12-01 18:32:27 +00:00
async-props.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
circular-json-error.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
custom-encoding.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
custom-extension.jsx Format missed files (#7464) 2019-05-29 18:19:32 -07:00
default-head.js Format missed files (#7464) 2019-05-29 18:19:32 -07:00
empty-get-initial-props.js Format missed files (#7464) 2019-05-29 18:19:32 -07:00
error-in-the-browser-global-scope.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
error-in-the-global-scope.js Format missed files (#7464) 2019-05-29 18:19:32 -07:00
error-inside-browser-page.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
error-inside-page.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
exports.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
forwardRef-component.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
fragment-syntax.js Format missed files (#7464) 2019-05-29 18:19:32 -07:00
head-duplicate-default-keys.js Fix/improve test for deduplication of tags with same key (#9793) 2019-12-24 16:22:04 +01:00
head-dynamic.js Migrate head side effects to hooks (#37526) 2022-06-08 11:26:57 +00:00
head-priority.js Place 'charset' element at the top of <head> (#28119) 2022-02-06 13:51:51 -06:00
head-with-json-ld-snippet.js test: clean up duplicated tests (#36871) 2022-05-13 00:46:12 +00:00
head.js fix(next/head): assign bool attrs to match server (#20748) 2021-01-04 19:57:52 +00:00
index.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
instance-get-initial-props.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
json.js Format missed files (#7464) 2019-05-29 18:19:32 -07:00
link-invalid-onclick.js Require component rendered as child of Link to pass event to onClick handler (#27723) 2022-02-07 00:04:37 +00:00
link-no-child.js Update next/link error when no children are provided (#35453) 2022-03-22 13:58:55 -05:00
link-number-child.js fix(#37981): handle legacy link behavior with number type children (#38013) 2022-06-25 20:07:40 +00:00
link.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
memo-component.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
no-default-export.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
query.js Correct query behavior for falsey values to pre 9.5.1 behavior (#16608) 2020-09-10 15:12:37 +00:00
read-only-object-error.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
snap-scroll-position.js fix(next/link): reset scroll before lifecycles (#20595) 2020-12-30 04:33:08 +00:00
stateless.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00
styled-jsx-external.js Upgrade styled-jsx (#19241) 2020-11-17 16:53:35 +00:00
styled-jsx.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
throw-undefined.js Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
with-cdm.js Break up basic test suite (#6730) 2019-03-20 11:01:32 +01:00