From 6a27e932d6c498eb29bf6568be330713526bf66f Mon Sep 17 00:00:00 2001 From: Marek Brzezinski Date: Mon, 7 Aug 2023 19:52:13 +0200 Subject: [PATCH] Added slashes at the end of the filter option in the sitemap docs (#7915) I trend to implement the sitemap and I found out that filter option works only when the URL has slashes at the end. I changed the examples. Co-authored-by: Nate Moore --- packages/integrations/sitemap/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/integrations/sitemap/README.md b/packages/integrations/sitemap/README.md index 346ec54c95..ecf59a12dd 100644 --- a/packages/integrations/sitemap/README.md +++ b/packages/integrations/sitemap/README.md @@ -148,7 +148,7 @@ All pages are included in your sitemap by default. By adding a custom `filter` f // astro.config.mjs // ... sitemap({ - filter: (page) => page !== 'https://stargazers.club/secret-vip-lounge', + filter: (page) => page !== 'https://stargazers.club/secret-vip-lounge/', }); ``` @@ -161,10 +161,10 @@ To filter multiple pages, add arguments with target URLs. // ... sitemap({ filter: (page) => - page !== 'https://stargazers.club/secret-vip-lounge-1' && - page !== 'https://stargazers.club/secret-vip-lounge-2' && - page !== 'https://stargazers.club/secret-vip-lounge-3' && - page !== 'https://stargazers.club/secret-vip-lounge-4', + page !== 'https://stargazers.club/secret-vip-lounge-1/' && + page !== 'https://stargazers.club/secret-vip-lounge-2/' && + page !== 'https://stargazers.club/secret-vip-lounge-3/' && + page !== 'https://stargazers.club/secret-vip-lounge-4/', }); ```