Search...
priority
Sets or gets the priority of this URL relative to other URLs on your site.
Description
The value of the priority
property lets search engines know which pages
you deem most important. Its value does not affect how your pages are
compared to pages on other sites.
Valid values range from 0.0 to 1.0.
The default priority of a page is 0.5.
Type:
numberRead & Write
Was this helpful?
Get the relative priority of the sitemap entry
Copy Code
1export function myRouter_SiteMap(sitemapRequest) {23 let priority = entry.priority; // 0.945}
Set the relative priority of the sitemap entry
Copy Code
1export function myRouter_SiteMap(sitemapRequest) {23 entry.priority = 0.9;45}