pageName


pageNamestringRead-only

Gets the page name.

Get the name of the sitemap entry
JavaScript
import wixSiteFrontend from "wix-site-frontend"; // ... wixSiteFrontend.routerSitemap("routerPrefix").then((routerSitemap) => { const firstEntryPageName = routerSitemap[0].pageName; // 'Page Name' });
Did this help?