diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-04 09:43:57 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-04 09:43:57 +0700 |
| commit | 7b12c20a46e4119e9a34ad15f9109765876a265b (patch) | |
| tree | c1bbdc7d19f56cf8183b540e90f0ff88a0e91909 /src/pages/sitemap/categories.xml.js | |
| parent | 992c7415988cc76338c991731f21d225e5330fa5 (diff) | |
fixing sitemap
Diffstat (limited to 'src/pages/sitemap/categories.xml.js')
| -rw-r--r-- | src/pages/sitemap/categories.xml.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pages/sitemap/categories.xml.js b/src/pages/sitemap/categories.xml.js index 676e7443..d9a11d71 100644 --- a/src/pages/sitemap/categories.xml.js +++ b/src/pages/sitemap/categories.xml.js @@ -6,7 +6,10 @@ import odooApi from '@/core/api/odooApi' export async function getServerSideProps({ res }) { const categories = await odooApi('GET', '/api/v1/category/tree') - const sitemap = create('urlset', { encoding: 'UTF-8' }) + const sitemap = create('urlset', { encoding: 'utf-8' }).att( + 'xmlns', + 'http://www.sitemaps.org/schemas/sitemap/0.9' + ) categories.forEach((category) => { addUrlToSitemap(sitemap, category.name, category.id) |
