Search...
url
Gets the relative url of the page.
Type:
stringRead Only
Was this helpful?
Get the sitemap entry relative URL
Copy Code
1import wixSiteFrontend from 'wix-site-frontend';23// ...45wixSiteFrontend.routerSitemap('routerPrefix')6 .then((routerSitemap) => {7 const firstEntryRelativeUrl = routerSitemap[0].url; // '/apartments/cozy-condo'89 });