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
The **`pathname`** property of the {{domxref("URL")}} interface represents a location in a hierarchical structure. It is a string constructed from a list of path segments, each of which is prefixed by a `/` character.
12
12
13
13
HTTPS, HTTP, or other URLs with [hierarchical schemes](https://www.rfc-editor.org/rfc/rfc3986#section-1.2.3) (which the URL standard calls "[special schemes](https://url.spec.whatwg.org/#special-scheme)") always have at least one (invisible) path segment: the empty string.
14
-
The `pathname` value for such URLs will therefore always have a least one `/` character.
14
+
The `pathname` value for such URLs will therefore always have at least one `/` character.
15
15
16
16
For non-hierarchical schemes, if the URL has no path segments, the value of its `pathname` property will be the empty string.
0 commit comments