Skip to content

Interface: SplitLocation

API / @xmachines/play-url / index / SplitLocation

Defined in: packages/play-url/src/location.ts:17

The parts of one location string.

Properties

PropertyModifierTypeDescriptionDefined in
fragmentreadonlystringThe fragment, WITH its leading #. It is "" when the location carries none.packages/play-url/src/location.ts:23
pathnamereadonlystringThe pathname, with no query and no fragment.packages/play-url/src/location.ts:19
queryreadonlystringThe query, with no leading ?. It is "" when the location carries none.packages/play-url/src/location.ts:21
suffixreadonlystringEvery character behind the pathname, as the location wrote them. A caller that rebuilds a location keeps this string rather than the two parts above, because it carries the ? and the order of the two marks without a change.packages/play-url/src/location.ts:30