Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/validate-redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ async function main() {
numUrlsWithFragment++;
}

if (!validEndings.some((ending) => from.endsWith(ending))) {
if (
!validEndings.some((ending) => from.endsWith(ending)) &&
from != "/api"
) {
console.log(`✘ Found unslashed source URLs:\n ${from}`);
numNonSlashedRedirects++;
}
Expand Down
1 change: 1 addition & 0 deletions public/__redirects
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# homepage
/docs/ /directory/ 301
/api /api/ 301
/products/ /directory/ 301
/zero-trust/ /products/?product-group=Cloudflare+One 301
/dashboard-landing/ / 301
Expand Down
Loading