Skip to content

Commit 1447eb0

Browse files
committed
Update release notes
1 parent 373b30c commit 1447eb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ We fixed a splat route path-resolution bug in `6.19.0`, but later determined a l
168168
The buggy behavior is that the default behavior when resolving relative paths inside a splat route would _ignore_ any splat (`*`) portion of the current route path.
169169

170170
**Background**
171+
171172
This decision was originally made thinking that it would make the concept of nested different sections of your apps in `<Routes>` easier if relative routing would _replace_ the current splat:
172173

173174
```jsx
@@ -258,6 +259,7 @@ let router = createBrowserRouter({
258259
This is just a compounded issue from the above because the default location for a `Form` to submit to is itself (`"."`) - and if we ignore the splat portion, that now resolves to the parent route.
259260

260261
**The Solution**
262+
261263
If you are leveraging this behavior, it's recommended to enable the `future.v7_relativeSplatPath` flag, move your splat to it's own `Route`, and leverage `../` for any links to "sibling" pages:
262264

263265
```jsx

0 commit comments

Comments
 (0)