@onruntime/next-sitemap 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +2 -1
- package/dist/app/index.js +2 -1
- package/dist/index.cjs +2 -1
- package/dist/index.js +2 -1
- package/dist/pages/index.cjs +2 -1
- package/dist/pages/index.js +2 -1
- package/package.json +1 -1
package/dist/app/index.cjs
CHANGED
|
@@ -273,7 +273,8 @@ function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
|
273
273
|
if (!locale || locale === defaultLocale) {
|
|
274
274
|
return `${baseUrl}${normalizedPath}`;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
277
|
+
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
277
278
|
}
|
|
278
279
|
function generateSitemapXml(entries, options) {
|
|
279
280
|
const { poweredBy = true } = options || {};
|
package/dist/app/index.js
CHANGED
|
@@ -250,7 +250,8 @@ function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
|
250
250
|
if (!locale || locale === defaultLocale) {
|
|
251
251
|
return `${baseUrl}${normalizedPath}`;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
254
|
+
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
254
255
|
}
|
|
255
256
|
function generateSitemapXml(entries, options) {
|
|
256
257
|
const { poweredBy = true } = options || {};
|
package/dist/index.cjs
CHANGED
|
@@ -273,7 +273,8 @@ function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
|
273
273
|
if (!locale || locale === defaultLocale) {
|
|
274
274
|
return `${baseUrl}${normalizedPath}`;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
277
|
+
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
277
278
|
}
|
|
278
279
|
function generateSitemapXml(entries, options) {
|
|
279
280
|
const { poweredBy = true } = options || {};
|
package/dist/index.js
CHANGED
|
@@ -250,7 +250,8 @@ function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
|
250
250
|
if (!locale || locale === defaultLocale) {
|
|
251
251
|
return `${baseUrl}${normalizedPath}`;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
254
|
+
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
254
255
|
}
|
|
255
256
|
function generateSitemapXml(entries, options) {
|
|
256
257
|
const { poweredBy = true } = options || {};
|
package/dist/pages/index.cjs
CHANGED
|
@@ -273,7 +273,8 @@ function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
|
273
273
|
if (!locale || locale === defaultLocale) {
|
|
274
274
|
return `${baseUrl}${normalizedPath}`;
|
|
275
275
|
}
|
|
276
|
-
|
|
276
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
277
|
+
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
277
278
|
}
|
|
278
279
|
function generateSitemapXml(entries, options) {
|
|
279
280
|
const { poweredBy = true } = options || {};
|
package/dist/pages/index.js
CHANGED
|
@@ -250,7 +250,8 @@ function buildUrl(baseUrl, pathname, locale, defaultLocale) {
|
|
|
250
250
|
if (!locale || locale === defaultLocale) {
|
|
251
251
|
return `${baseUrl}${normalizedPath}`;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
const pathSuffix = pathname === "/" ? "" : normalizedPath;
|
|
254
|
+
return `${baseUrl}/${locale}${pathSuffix}`;
|
|
254
255
|
}
|
|
255
256
|
function generateSitemapXml(entries, options) {
|
|
256
257
|
const { poweredBy = true } = options || {};
|
package/package.json
CHANGED