Skip to content

Commit 52c87cc

Browse files
committed
improvement(emails): update email footer links to link to sim.ai/provider instead of direct provider links
1 parent 5af72ea commit 52c87cc

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

apps/sim/components/emails/components/email-footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function EmailFooter({ baseUrl = getBaseUrl(), unsubscribe, messageId }:
6161
<tbody>
6262
<tr>
6363
<td align='left' style={{ padding: '0 8px 0 0' }}>
64-
<Link href='https://x.com/simdotai' rel='noopener noreferrer'>
64+
<Link href={`${baseUrl}/x`} rel='noopener noreferrer'>
6565
<Img
6666
src={`${baseUrl}/static/x-icon.png`}
6767
width='20'
@@ -71,7 +71,7 @@ export function EmailFooter({ baseUrl = getBaseUrl(), unsubscribe, messageId }:
7171
</Link>
7272
</td>
7373
<td align='left' style={{ padding: '0 8px' }}>
74-
<Link href='https://discord.gg/Hr4UWYEcTT' rel='noopener noreferrer'>
74+
<Link href={`${baseUrl}/discord`} rel='noopener noreferrer'>
7575
<Img
7676
src={`${baseUrl}/static/discord-icon.png`}
7777
width='20'
@@ -81,7 +81,7 @@ export function EmailFooter({ baseUrl = getBaseUrl(), unsubscribe, messageId }:
8181
</Link>
8282
</td>
8383
<td align='left' style={{ padding: '0 8px' }}>
84-
<Link href='https://github.com/simstudioai/sim' rel='noopener noreferrer'>
84+
<Link href={`${baseUrl}/github`} rel='noopener noreferrer'>
8585
<Img
8686
src={`${baseUrl}/static/github-icon.png`}
8787
width='20'

apps/sim/next.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,25 @@ const nextConfig: NextConfig = {
253253
async redirects() {
254254
const redirects = []
255255

256+
// Social link redirects (used in emails to avoid spam filter issues)
257+
redirects.push(
258+
{
259+
source: '/discord',
260+
destination: 'https://discord.gg/Hr4UWYEcTT',
261+
permanent: false,
262+
},
263+
{
264+
source: '/x',
265+
destination: 'https://x.com/simdotai',
266+
permanent: false,
267+
},
268+
{
269+
source: '/github',
270+
destination: 'https://github.com/simstudioai/sim',
271+
permanent: false,
272+
}
273+
)
274+
256275
// Redirect /building and /blog to /studio (legacy URL support)
257276
redirects.push(
258277
{

0 commit comments

Comments
 (0)