routerSitemap( )


Returns the sitemap for a router or dynamic page prefix.

The routerSitemap() function 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 Declaration
Copy
Method Parameters
routerPrefixstringRequired

The prefix of the router to get the sitemap for.

Returns
Return Type:Promise<Array<WixRouterSitemapEntry>>
Was this helpful?
Yes
No