> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: routerSitemap(routerPrefix: string) # Method package: wixSiteFrontend # Method menu location: wixSiteFrontend --> routerSitemap # Method Link: https://dev.wix.com/docs/velo/apis/wix-site-frontend/router-sitemap.md # Method Description: Returns the sitemap for a router or dynamic page prefix. The `routerSitemap()` method returns a Promise that resolves to a list of `WixSitemapEntry` objects. Each `WixSitemapEntry` includes information about a page, such as its URL, title, and name. A sitemap is used by search engines to find the links to the site's pages. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the sitemap for a prefix ```javascript import wixSiteFrontend from 'wix-site-frontend'; // ... wixSiteFrontend.routerSitemap("routerPrefix") .then( (routerSitemap) => { const sitemap = routerSitemap; } ); /* * sitemap: * * [ * { * "url": "Ash", * "lastModified": null, * "changeFrequency": "", * "priority": null, * "title": "Ash Stowe", * "pageName": "Ash's Page" * }, * { * "url": "Aiden", * "lastModified": null, * "changeFrequency": "", * "priority": null, * "title": "Aiden Johnson", * "pageName": "Aiden's page" * }, * { * "url": "Jess", * "lastModified": null, * "changeFrequency": "", * "priority": null, * "title": "Jess White", * "pageName": "Jess's page" * }, * { * "url": "Morgan", * "lastModified": null, * "changeFrequency": "", * "priority": null, * "title": "Morgan James", * "pageName": "Morgan's Page" * } * ] */ ``` ---