Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
12 changes: 10 additions & 2 deletions app/en/resources/contact-us/contact-cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
Users,
} from "lucide-react";
import posthog from "posthog-js";
import { useState } from "react";
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { QuickStartCard } from "../../../_components/quick-start-card";

Expand Down Expand Up @@ -264,6 +264,14 @@ function SuccessMessage({ onClose }: { onClose: () => void }) {
export function ContactCards() {
const [isSalesModalOpen, setIsSalesModalOpen] = useState(false);
const [isSubmitted, setIsSubmitted] = useState(false);
// Assemble the support mailto only after mount so the SSR/crawled markup
// shows a plain contact-page link — Cloudflare's email obfuscation then has
// nothing to rewrite into a broken /cdn-cgi/l/email-protection link. Mirrors
// <ContactEmail> (see app/_components/contact-email.tsx).
const [supportHref, setSupportHref] = useState("/en/resources/contact-us");
useEffect(() => {
setSupportHref("mailto:support@arcade.dev");
}, []);

const handleContactSalesClick = () => {
posthog.capture("Contact sales modal opened", {
Expand All @@ -282,7 +290,7 @@ export function ContactCards() {
<div className="mt-16 grid gap-8 md:grid-cols-2 lg:grid-cols-3">
<QuickStartCard
description="Get help with technical issues, account questions, and general inquiries from our support team. Email support is available for customers on paid plans."
href="mailto:support@arcade.dev"
href={supportHref}
icon={Mail}
title="Email Support"
/>
Expand Down
7 changes: 7 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ const nextConfig: NextConfig = withLlmsTxt({
destination: "/:locale/resources/integrations",
permanent: true,
},
// The auth provider is "square"; an external/stale link points at the
// old "squareup" slug, which 404s. Send it to the real page.
{
source: "/:locale/references/auth-providers/squareup",
destination: "/:locale/references/auth-providers/square",
permanent: true,
},
// Dissolved guides/security section
{
source: "/:locale/guides/security/security-research-program",
Expand Down
Loading