Search.../

wix-location

The wix-location module contains functionality for getting information about the URL of the current page and for navigating to other pages. Learn more.

Guides

Additional information about this section

Properties

Store values associated with an object

  • baseUrl

    Gets the base URL of the current page.

  • path

    Gets the path of the current page's URL.

  • prefix

    Gets the prefix of a dynamic page's or router page's URL.

  • protocol

    Gets the protocol of the current page's URL.

  • query

    Gets an object that represents the query segment of the current page's URL.

  • queryParams

    Gets an object used to manage the query segment of the current page's URL.

  • url

    Gets the full URL of the current page.

Functions

Perform actions on an object

  • onChange( )

    Adds an event handler that runs when an application page's URL changes.

  • to( )

    Directs the browser to navigate to the specified URL.

Subcategories
  • QueryParams

    An object used to manage the query segment of the current page's URL.