url


urlstringRead-only

Gets the full URL of the current page.

Premium sites: Premium site URL

Free sites: Free site URL

Get the full URL of the current page
JavaScript
import wixLocationFrontend from "wix-location-frontend"; // ... let url = wixLocationFrontend.url; // Premium site: "https://www.domain.com/animals/elephant?species=african-elephant#desc" // Free site: "https://user_name.wixsite.com/zoo/animals/elephant?species=african-elephant#desc"
Did this help?