Skip to content

LocationLike

LocationLike = string | URL | { hostname?: string; pathname: string; }

A path, a full URL, a URL, or any { pathname } — a react-router location, window.location. hostname is read, when present, only for a localeHost site, where the host is the locale; a bare path then falls back to the browser’s own hostname.