Browser Location

Use the location object's param method to get query values from the URL of the current page.

The example below sets the param variable to SKU001 from the value in the query string of the URL.

// https://service?product=SKU001

const param = wire.location.param("product");

Last updated