Skip to main content

LocationInfo

Describes the current location parsed from the page route.

Parameters:

  • pathname (str) - URL path portion (e.g. /products/42).
  • search (str, default: '') - Query string portion without leading ?.
  • hash (str, default: '') - Fragment portion without leading #.

Properties​

hashclass-attributeinstance-attribute​

hash: str = ''

pathnameinstance-attribute​

pathname: str

searchclass-attributeinstance-attribute​

search: str = ''