query


queryQueryRead-only

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

Premium sites: Premium site query

Free sites: Free site query

JavaScript
import wixLocationFrontend from "wix-location-frontend"; // Premium site URL: "https://www.domain.com/animals/elephant?species=african-elephant#desc" // Free site URL: "https://user_name.wixsite.com/zoo/animals/elephant?species=african-elephant#desc" let query = wixLocationFrontend.query; // {"species": "african-elephant"}
Did this help?