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 b3523ea commit f7f3d44Copy full SHA for f7f3d44
bin/validate-redirects.ts
@@ -25,7 +25,7 @@ async function main() {
25
numUrlsWithFragment++;
26
}
27
28
- if (!from.endsWith("/")) {
+ if (!from.endsWith("/") || !from.endsWith("*") || !from.endsWith(".xml")) {
29
console.log(`✘ Found unslashed source URLs:\n ${from}`);
30
numNonSlashedRedirects++;
31
public/__redirects
@@ -1,5 +1,4 @@
1
# homepage
2
-/api /api/ 301
3
/docs/ /directory/ 301
4
/products/ /directory/ 301
5
/zero-trust/ /products/?product-group=Cloudflare+One 301
0 commit comments