Skip to content

Commit c5c42d9

Browse files
committed
feat(apps): handle redirect for code-of-conduct.angular.io (#2305)
redirect code-of-conduct.angular.io to code-of-conduct.angular.dev PR Close #2305
1 parent 2ed13f4 commit c5c42d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/functions/dns-redirecting/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export const dnsRedirecting = functions.https.onRequest(
2828
}
2929
}
3030

31+
if (hostname === 'code-of-conduct.angular.io') {
32+
response.redirect(redirectType, 'https://code-of-conduct.angular.dev');
33+
}
3134
if (hostname === 'update.angular.dev') {
3235
response.redirect(redirectType, 'https://angular.dev/update-guide');
3336
}

0 commit comments

Comments
 (0)