Skip to content

Commit

Permalink
Fix URL base parameter description typo (#35794)
Browse files Browse the repository at this point in the history
* Fix URL base parameter description typo

* Improve URL base parameter description
  • Loading branch information
Kissaki authored Sep 8, 2024
1 parent 8e16afb commit 5a7fae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/url/url/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ new URL(url, base)
- : A string representing the base URL to use in cases where `url` is a relative reference.
If not specified, it defaults to `undefined`.

When specify a `base` URL, the resolved URL is not simply a concatenation of `url` and `base`.
When a `base` is specified, the resolved URL is not simply a concatenation of `url` and `base`.
Relative references to the parent and current directory are resolved are relative to the current directory of the `base` URL, which includes path segments up until the last forward-slash, but not any after.
Relative references to the root are resolved relative to the base origin.
For more information see [Resolving relative references to a URL](/en-US/docs/Web/API/URL_API/Resolving_relative_references).
Expand Down

0 comments on commit 5a7fae1

Please sign in to comment.