You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/router/framework/react/guide/navigation.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,16 @@ const link = (
290
290
)
291
291
```
292
292
293
+
> ⚠️ When directly navigating to a URL with a hash fragment, the fragment is only available on the client; the browser does not send the fragment to the server as part of the request URL.
294
+
>
295
+
> This means that if you are using a server-side rendering approach, the hash fragment will not be available on the server-side, and hydration mismatches can occur when using the hash for rendering markup.
296
+
>
297
+
> Examples of this would be:
298
+
>
299
+
> - returning the hash value in the markup,
300
+
> - conditional rendering based on the hash value, or
301
+
> - setting the Link as active based on the hash value.
302
+
293
303
### Navigating with Optional Parameters
294
304
295
305
Optional path parameters provide flexible navigation patterns where you can include or omit parameters as needed. Optional parameters use the `{-$paramName}` syntax and offer fine-grained control over URL structure.
0 commit comments