Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

♻️ Use locale-aware links for internal hrefs in the landing app (#3418)

Luke Vella6965cc7f750d
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
index 2cba68252..8bac08db9 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/best-doodle-alternative/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import {
CompareTable,
@@ -356,7 +355,7 @@ export default async function Page(props: {
i18nKey="faqIsFreeAnswer"
defaults="Yes. 99% of people use Rallly completely free. Creating polls, sharing them, and collecting votes costs nothing and there is no limit on participants. We also offer <0>Rallly Pro</0>, a paid subscription with features that are useful if you use Rallly professionally, like adding your own branding, removing Rallly attribution from your polls, and keeping polls around indefinitely."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -414,7 +413,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx
index cf4527f88..0d7503b41 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/free-scheduling-poll/page.tsx
@@ -3,7 +3,6 @@
import { CalendarIcon, ClockIcon, UsersIcon } from "lucide-react";
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import {
ContentGrid,
@@ -26,6 +25,7 @@ import {
SectionHeading,
SectionTitle,
} from "@/components/section";
+import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
@@ -229,7 +229,7 @@ export default async function Page(props: {
i18nKey="faqIsFreeAnswer"
defaults="Yes. 99% of people use Rallly completely free. Creating polls, sharing them, and collecting votes costs nothing and there is no limit on participants. We also offer <0>Rallly Pro</0>, a paid subscription with features that are useful if you use Rallly professionally, like adding your own branding, removing Rallly attribution from your polls, and keeping polls around indefinitely."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -287,7 +287,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/assistants/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/assistants/page.tsx
index 20cc04396..e5a4e40ad 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/assistants/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/assistants/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import { PeopleBadge, PollsBadge } from "@/components/home/animated-number";
import { Cta } from "@/components/home/cta";
@@ -13,6 +12,7 @@ import { HowItWorks } from "@/components/home/how-it-works/how-it-works";
import { SocialProof } from "@/components/home/social-proof";
import { Stats } from "@/components/home/stats";
import { Section } from "@/components/section";
+import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
@@ -156,7 +156,7 @@ export default async function Page(props: {
i18nKey="assistantsFaqBrandingAnswer"
defaults="With <0>Rallly Pro</0> you can add your own logo and colours and remove Rallly attribution, so a poll you send to a board or a client looks like it came from your organization. Everything else is free to use."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -180,7 +180,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/committees/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/committees/page.tsx
index b7c2ebea1..60e1e430f 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/committees/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/committees/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import { PeopleBadge, PollsBadge } from "@/components/home/animated-number";
import { Cta } from "@/components/home/cta";
@@ -181,7 +180,7 @@ export default async function Page(props: {
i18nKey="committeesFaqBrandingAnswer"
defaults="With <0>Rallly Pro</0> you can add your own logo and colours and remove Rallly attribution, so a poll you send to a board looks like it came from your organization. Everything else is free to use."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -205,7 +204,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/legal/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/legal/page.tsx
index 33bc53b48..9d9874d4b 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/legal/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/legal/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import { PeopleBadge, PollsBadge } from "@/components/home/animated-number";
import { Cta } from "@/components/home/cta";
@@ -13,6 +12,7 @@ import { HowItWorks } from "@/components/home/how-it-works/how-it-works";
import { SocialProof } from "@/components/home/social-proof";
import { Stats } from "@/components/home/stats";
import { Section } from "@/components/section";
+import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
@@ -122,7 +122,7 @@ export default async function Page(props: {
i18nKey="legalFaqConfidentialAnswer"
defaults="Only what you choose to put in it. Many firms title the poll by matter reference rather than by party name, and leave the description empty. With <0>Rallly Pro</0> you can also hide participant names, so one side cannot see who else was invited, and hide votes until someone has responded themselves."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -163,7 +163,7 @@ export default async function Page(props: {
i18nKey="legalFaqBrandingAnswer"
defaults="With <0>Rallly Pro</0> you can add your own logo and colours and remove Rallly attribution, so a poll you send to another firm or a client looks like it came from your practice. Everything else is free to use."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -187,7 +187,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/sports-clubs/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/sports-clubs/page.tsx
index 1e9aacf62..978738346 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/sports-clubs/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/sports-clubs/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import { PeopleBadge, PollsBadge } from "@/components/home/animated-number";
import { Cta } from "@/components/home/cta";
@@ -13,6 +12,7 @@ import { HowItWorks } from "@/components/home/how-it-works/how-it-works";
import { SocialProof } from "@/components/home/social-proof";
import { Stats } from "@/components/home/stats";
import { Section } from "@/components/section";
+import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
@@ -156,7 +156,7 @@ export default async function Page(props: {
i18nKey="sportsClubsFaqBrandingAnswer"
defaults="With <0>Rallly Pro</0> you can add your own logo and colours and remove Rallly attribution, so a poll you send out looks like it came from the club. Everything else is free to use."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -180,7 +180,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/thesis-defense/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/thesis-defense/page.tsx
index dcf2d6c90..96641f91d 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/thesis-defense/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/scheduling-for/thesis-defense/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import { PeopleBadge, PollsBadge } from "@/components/home/animated-number";
import { Cta } from "@/components/home/cta";
@@ -13,6 +12,7 @@ import { HowItWorks } from "@/components/home/how-it-works/how-it-works";
import { SocialProof } from "@/components/home/social-proof";
import { Stats } from "@/components/home/stats";
import { Section } from "@/components/section";
+import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAlternates } from "@/lib/alternates";
import { getMonthlyPollCount, getMonthlyVoterCount } from "@/lib/data";
@@ -156,7 +156,7 @@ export default async function Page(props: {
i18nKey="thesisDefenseFaqBrandingAnswer"
defaults="With <0>Rallly Pro</0> you can add your own logo and colours and remove Rallly attribution, so a poll you send to an external examiner looks like it came from your department. Everything else is free to use."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -180,7 +180,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx b/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx
index f4689d610..b2977c5ca 100644
--- a/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/(seo)/when2meet-alternative/page.tsx
@@ -2,7 +2,6 @@
import type { Metadata } from "next";
import { cacheLife } from "next/cache";
-import Link from "next/link";
import { Trans } from "react-i18next/TransWithoutContext";
import {
CompareTable,
@@ -411,7 +410,7 @@ export default async function Page(props: {
i18nKey="faqIsFreeAnswer"
defaults="Yes. 99% of people use Rallly completely free. Creating polls, sharing them, and collecting votes costs nothing and there is no limit on participants. We also offer <0>Rallly Pro</0>, a paid subscription with features that are useful if you use Rallly professionally, like adding your own branding, removing Rallly attribution from your polls, and keeping polls around indefinitely."
components={[
- <Link
+ <LinkBase
key="pricing"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/pricing"
@@ -469,7 +468,7 @@ export default async function Page(props: {
i18nKey="faqPrivacyAnswer"
defaults="Yes. Privacy is central to how we build Rallly. We do not show ads or sell your data, we collect only what we need to run the service, and polls on the free plan are deleted automatically once they become inactive. Rallly is also open source, so anyone can inspect how their data is handled. You can read the details in our <0>privacy policy</0>."
components={[
- <Link
+ <LinkBase
key="privacy"
className="text-gray-800 underline underline-offset-2 hover:text-gray-600"
href="/privacy-policy"
diff --git a/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx b/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx
index 785e86458..12c4e82fa 100644
--- a/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx
+++ b/apps/landing/src/app/[locale]/(main)/blog/[slug]/page.tsx
@@ -11,6 +11,7 @@ import { Trans } from "react-i18next/TransWithoutContext";
import DateFormatter from "@/components/blog/date-formatter";
import { Cta } from "@/components/home/cta";
import { Section } from "@/components/section";
+import { LinkBase } from "@/i18n/client/link";
import { getTranslation } from "@/i18n/server";
import { getAllPosts, getPostBySlug } from "@/lib/api";
@@ -42,7 +43,7 @@ export default async function Page(props: {
<div className="divide-y">
<Section>
<nav className="flex items-center gap-2 text-sm">
- <Link href="/blog" className="text-gray-500 hover:text-gray-800">
+ <LinkBase href="/blog" className="text-gray-500 hover:text-gray-800">
<Trans
t={t}
i18n={i18n}
@@ -50,7 +51,7 @@ export default async function Page(props: {
i18nKey="blog"
defaults="Blog"
/>
- </Link>
+ </LinkBase>
{post.category ? (
<>
<span aria-hidden="true" className="text-gray-400">
diff --git a/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx b/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx
index da9766423..d69795072 100644
--- a/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx
+++ b/apps/landing/src/app/[locale]/(main)/blog/post-preview.tsx
@@ -2,7 +2,7 @@
import dayjs from "dayjs";
import localizedFormat from "dayjs/plugin/localizedFormat";
-import Link from "next/link";
+import { LinkBase } from "@/i18n/client/link";
dayjs.extend(localizedFormat);
@@ -33,9 +33,9 @@ export const PostPreview = ({
<time dateTime={date}>{dayjs(date).format("LL")}</time>
</div>
<h2 className="mt-2 text-balance font-medium text-gray-800 text-xl tracking-tight">
- <Link href={`/blog/${slug}`} className="hover:underline">
+ <LinkBase href={`/blog/${slug}`} className="hover:underline">
{title}
- </Link>
+ </LinkBase>
</h2>
<p className="mt-2 max-w-prose text-pretty text-base/6 text-gray-500">
{excerpt}