Skip to content

Commit 4e01023

Browse files
Add a note on how navigation.navigate()'s url parameter is resolved. (#26993)
* Add a note on how navigation.navigate()'s url parameter is resolved. * Update files/en-us/web/api/navigation/navigate/index.md --------- Co-authored-by: Joshua Chen <[email protected]>
1 parent 09c39a3 commit 4e01023

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/web/api/navigation/navigate

1 file changed

+1
-1
lines changed

files/en-us/web/api/navigation/navigate/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ navigate(url, options)
2323
### Parameters
2424

2525
- `url`
26-
- : The destination URL to navigate to.
26+
- : The destination URL to navigate to. Note that when calling `navigate()` on a another window's `navigation` object, the URL will be resolved relative to the target window's URL, not the calling window's URL. This matches the behavior of the [History API](/en-US/docs/Web/API/History_API), but not the behavior of the [Location API](/en-US/docs/Web/API/Location).
2727
- `options` {{optional_inline}}
2828
- : An options object containing the following properties:
2929
- `state`

0 commit comments

Comments
 (0)