summaryrefslogtreecommitdiff
path: root/packages/astro-rss/src/util.ts
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2023-05-02 13:48:44 -0400
committerGravatar GitHub <noreply@github.com> 2023-05-02 13:48:44 -0400
commitb5482cee2387149ff397447e546130ba3dea58db (patch)
tree9d79717419dfae880c09e488cc24d48e5ba19dc0 /packages/astro-rss/src/util.ts
parentb6797fc8583f7cb0749e69e72a56fe9fba6f815b (diff)
downloadastro-b5482cee2387149ff397447e546130ba3dea58db.tar.gz
astro-b5482cee2387149ff397447e546130ba3dea58db.tar.zst
astro-b5482cee2387149ff397447e546130ba3dea58db.zip
Fix: remove odd `/1/` check on RSS canonicals (#6970)
* fix: remove odd `/1/` check on RSS canonicals * chore: changeset
Diffstat (limited to 'packages/astro-rss/src/util.ts')
-rw-r--r--packages/astro-rss/src/util.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/packages/astro-rss/src/util.ts b/packages/astro-rss/src/util.ts
index 63a8c5568..e40301a4c 100644
--- a/packages/astro-rss/src/util.ts
+++ b/packages/astro-rss/src/util.ts
@@ -8,7 +8,6 @@ export function createCanonicalURL(
base?: string
): URL {
let pathname = url.replace(/\/index.html$/, ''); // index.html is not canonical
- pathname = pathname.replace(/\/1\/?$/, ''); // neither is a trailing /1/ (impl. detail of collections)
if (trailingSlash === false) {
// remove the trailing slash
pathname = pathname.replace(/(\/+)?$/, '');