We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dce798 commit eb03a32Copy full SHA for eb03a32
.changeset/stale-ladybugs-walk.md
@@ -0,0 +1,5 @@
1
+---
2
+'@blinkk/root': patch
3
4
+
5
+fix: fix trailing slashes used in sitemap
packages/root/src/render/router.ts
@@ -198,6 +198,10 @@ export function normalizeUrlPath(
198
if (!urlPath.startsWith('/')) {
199
urlPath = `/${urlPath}`;
200
}
201
+ // Add trailing slash if needed.
202
+ if (options?.trailingSlash && !urlPath.endsWith('/')) {
203
+ urlPath = `${urlPath}/`;
204
+ }
205
return urlPath;
206
207
0 commit comments