Skip to content

Commit 9179dfe

Browse files
committed
fix urls in sitemap having too many slashes
1 parent 8471df9 commit 9179dfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth/react-file-based-routes",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"repository": "https://github.com/idrinth/react-file-based-routes",
55
"description": "A simple file based routing library, that does not force itself on you.",
66
"license": "MIT",

src/sitemap-writer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default class SitemapWriter implements Writer {
1313
if (url === '*') {
1414
return;
1515
}
16-
this.items.push(`<url><loc>https://${this.domain}/${url}/</loc><lastmod>${changed}</lastmod></url>`);
16+
this.items.push(`<url><loc>https://${this.domain}${url}</loc><lastmod>${changed}</lastmod></url>`);
1717
}
1818
toString(): string {
1919
return '<?xml version="1.0" encoding="UTF-8"?>' +

0 commit comments

Comments
 (0)