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/
1 parent b6797fc commit b5482ceCopy full SHA for b5482ce
2 files changed
.changeset/flat-peas-wave.md
@@ -0,0 +1,5 @@
1
+---
2
+"@astrojs/rss": patch
3
4
+
5
+Fix: remove accidental stripping of trailing `/1/` on canonical URLs
packages/astro-rss/src/util.ts
@@ -8,7 +8,6 @@ export function createCanonicalURL(
8
base?: string
9
): URL {
10
let pathname = url.replace(/\/index.html$/, ''); // index.html is not canonical
11
- pathname = pathname.replace(/\/1\/?$/, ''); // neither is a trailing /1/ (impl. detail of collections)
12
if (trailingSlash === false) {
13
// remove the trailing slash
14
pathname = pathname.replace(/(\/+)?$/, '');
0 commit comments