rsnext/test/integration/rewrites-manual-href-as
cvolant 101a70ba8d
Fix as option with optional catch all routes url object syntax (#42355)
In `Link`, `router.push`, and `router.replace`, `as` option used to
throw for optional catch all routes with url object syntax: optional
attribute were not taken into account when checking missing parameters
in router change method.
This PR just add a condition in the filter callback to filter out
optional routes.
Fixes #41624

## Bug

- [X] Related issues linked using `fixes #number`
- [X] Integration tests added
- [X] Errors have a helpful link attached, see `contributing.md`
2022-11-09 20:48:38 -08:00
..
pages Fix as option with optional catch all routes url object syntax (#42355) 2022-11-09 20:48:38 -08:00
test Fix as option with optional catch all routes url object syntax (#42355) 2022-11-09 20:48:38 -08:00
next.config.js Fix as option with optional catch all routes url object syntax (#42355) 2022-11-09 20:48:38 -08:00