We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
loc
1 parent 295c98f commit c066610Copy full SHA for c066610
src/runtime/nitro/sitemap/urlset/normalise.ts
@@ -34,7 +34,7 @@ export function preNormalizeEntry(_e: SitemapUrl | string): ResolvedSitemapUrl {
34
delete e.url
35
}
36
// we want a uniform loc so we can dedupe using it, remove slashes and only get the path
37
- e.loc = removeTrailingSlash(e.loc)
+ e.loc = removeTrailingSlash(e.loc || '')
38
e._abs = hasProtocol(e.loc, { acceptRelative: false, strict: false })
39
try {
40
e._path = e._abs ? parseURL(e.loc) : parsePath(e.loc)
0 commit comments