Skip to content

Commit f7f3d44

Browse files
committed
Update
1 parent b3523ea commit f7f3d44

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

bin/validate-redirects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function main() {
2525
numUrlsWithFragment++;
2626
}
2727

28-
if (!from.endsWith("/")) {
28+
if (!from.endsWith("/") || !from.endsWith("*") || !from.endsWith(".xml")) {
2929
console.log(`✘ Found unslashed source URLs:\n ${from}`);
3030
numNonSlashedRedirects++;
3131
}

public/__redirects

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# homepage
2-
/api /api/ 301
32
/docs/ /directory/ 301
43
/products/ /directory/ 301
54
/zero-trust/ /products/?product-group=Cloudflare+One 301

0 commit comments

Comments
 (0)