From 737e2ef5081c08206cdf58f0646e591ffea65ab2 Mon Sep 17 00:00:00 2001
From: Justin Persaud <jpersaud@expensify.com>
Date: Wed, 21 Aug 2024 09:29:53 -0400
Subject: [PATCH 1/4] support expensify.org

---
 .github/scripts/createHelpRedirects.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/scripts/createHelpRedirects.sh b/.github/scripts/createHelpRedirects.sh
index 14ed9de953fc..553766c64ccf 100755
--- a/.github/scripts/createHelpRedirects.sh
+++ b/.github/scripts/createHelpRedirects.sh
@@ -46,7 +46,7 @@ while read -r line; do
         exit 1
     fi
 
-    if ! [[ $DEST_URL =~ ^https://(help|use)\.expensify\.com ]]; then
+    if ! [[ $DEST_URL =~ ^https://(help|use)\.expensify\.com|^https://www\.expensify\.org ]]; then
         error "Found destination URL that is not a helpDot or useDot URL: $DEST_URL"
         exit 1
     fi

From 8047fe4b4bb56dcd7fc286471703ab5de30639ba Mon Sep 17 00:00:00 2001
From: Justin Persaud <jpersaud@expensify.com>
Date: Wed, 21 Aug 2024 09:31:44 -0400
Subject: [PATCH 2/4] restore expesify.org redirects

---
 docs/redirects.csv | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/redirects.csv b/docs/redirects.csv
index c59c772b5535..532bd4ca1752 100644
--- a/docs/redirects.csv
+++ b/docs/redirects.csv
@@ -419,6 +419,7 @@ https://community.expensify.com/discussion/4825/how-to-create-and-send-invoices-
 https://community.expensify.com/discussion/8850/how-to-enable-monthly-settlement,https://help.expensify.com/articles/expensify-classic/expensify-card/Admin-Card-Settings-and-Features#change-the-settlement-frequency
 https://community.expensify.com/discussion/4828/how-to-match-your-company-cards-statement-to-expensify/,https://help.expensify.com/articles/expensify-classic/expensify-card/Admin-Card-Settings-and-Features#reconciling-expenses-and-settlements
 https://community.expensify.com/discussion/5751/deep-dive-domain-groups-and-permissions-what-are-they-all-about,https://help.expensify.com/articles/expensify-classic/domains/Create-A-Group
+https://community.expensify.com/categories/expensify-org-general-questions-and-discussions,https://www.expensify.org/
 https://community.expensify.com/discussion/4832/how-to-enable-saml-sso,https://help.expensify.com/articles/expensify-classic/domains/SAML-SSO
 https://community.expensify.com/discussion/4476/how-to-enable-scheduled-submit-for-a-group-policy/,https://help.expensify.com/articles/expensify-classic/reports/Automatically-submit-employee-reports
 https://community.expensify.com/discussion/4524/how-to-set-up-the-uber-integration/,https://help.expensify.com/articles/expensify-classic/connections/Uber
@@ -497,6 +498,7 @@ https://community.expensify.com/discussion/7335/faq-what-is-the-expensify-card-a
 https://community.expensify.com/discussion/7524/how-to-set-up-disable-2fa-for-your-domain,https://help.expensify.com/articles/expensify-classic/domains/Add-Domain-Members-and-Admins
 https://community.expensify.com/discussion/7736/faq-troubleshooting-two-factor-authentication-issues,https://help.expensify.com/articles/expensify-classic/settings/Enable-two-factor-authentication
 https://community.expensify.com/discussion/7862/introducing-expensify-cash-open-source-financial-group-chat-built-with-react-native,https://help.expensify.com/articles/expensify-classic/bank-accounts-and-payments/payments/Reimburse-Reports-Invoices-and-Bills
+https://community.expensify.com/discussion/7931/how-to-become-an-expensify-org-donor,https://www.expensify.org/donate
 https://community.expensify.com/discussion/8705/how-to-change-an-invoice-to-an-expense-report/,https://help.expensify.com/articles/expensify-classic/reports/Edit-a-report
 https://community.expensify.com/discussion/8803/settle-your-expensify-cards-monthly-or-daily-you-pick,https://help.expensify.com/articles/expensify-classic/expensify-card/Statements#expensify-card-settlement-frequency
 https://community.expensify.com/discussion/4784/how-to-alternate-option-submit-as-part-of-approval-workflow,https://help.expensify.com/articles/expensify-classic/reports/Create-a-report-approval-workflow

From 0a975278906e5d782b423d3d0752afdc34b68273 Mon Sep 17 00:00:00 2001
From: Justin Persaud <jpersaud@expensify.com>
Date: Wed, 21 Aug 2024 09:35:04 -0400
Subject: [PATCH 3/4] support integrations.expensify.com

---
 .github/scripts/createHelpRedirects.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/scripts/createHelpRedirects.sh b/.github/scripts/createHelpRedirects.sh
index 553766c64ccf..e804fd65854f 100755
--- a/.github/scripts/createHelpRedirects.sh
+++ b/.github/scripts/createHelpRedirects.sh
@@ -46,7 +46,7 @@ while read -r line; do
         exit 1
     fi
 
-    if ! [[ $DEST_URL =~ ^https://(help|use)\.expensify\.com|^https://www\.expensify\.org ]]; then
+    if ! [[ $DEST_URL =~ ^https://(help|use|integrations)\.expensify\.com|^https://www\.expensify\.org ]]; then
         error "Found destination URL that is not a helpDot or useDot URL: $DEST_URL"
         exit 1
     fi

From a9645867dcdacbb00cd35ae461bb4ff60bc1c6c2 Mon Sep 17 00:00:00 2001
From: Justin Persaud <jpersaud@expensify.com>
Date: Wed, 21 Aug 2024 10:09:02 -0400
Subject: [PATCH 4/4] update error message

---
 .github/scripts/createHelpRedirects.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/scripts/createHelpRedirects.sh b/.github/scripts/createHelpRedirects.sh
index e804fd65854f..4ce3d0753f58 100755
--- a/.github/scripts/createHelpRedirects.sh
+++ b/.github/scripts/createHelpRedirects.sh
@@ -47,7 +47,7 @@ while read -r line; do
     fi
 
     if ! [[ $DEST_URL =~ ^https://(help|use|integrations)\.expensify\.com|^https://www\.expensify\.org ]]; then
-        error "Found destination URL that is not a helpDot or useDot URL: $DEST_URL"
+        error "Found destination URL that is not a supported URL: $DEST_URL"
         exit 1
     fi
 
