From 96b34271251d0e298b080c40ed2bc2d2b0fab4df Mon Sep 17 00:00:00 2001 From: Shea McKinney Date: Mon, 8 Jan 2024 10:31:36 -0800 Subject: [PATCH] Trying something for Safari. --- components/Logo/Logo.tsx | 3 ++- netlify.toml | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/components/Logo/Logo.tsx b/components/Logo/Logo.tsx index 2578e8c9..c57654a7 100644 --- a/components/Logo/Logo.tsx +++ b/components/Logo/Logo.tsx @@ -21,7 +21,8 @@ export const Logo = ({ ); - const homeLink = '/'; + // Must be /home or else the RSC prefetch won't work as there are issues with "/" + const homeLink = '/home'; // Render logo as link if isLink is true if (isLink) { diff --git a/netlify.toml b/netlify.toml index 3803731d..498dde1f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -42,4 +42,13 @@ Referrer-Policy = "strict-origin-when-cross-origin" Strict-Transport-Security = "max-age=2592000" Permissions-Policy = "vibrate=(), geolocation=(), midi=(), notifications=(), push=(), microphone=(), camera=(), magnetometer=(), gyroscope=(), speaker=()" - X-Robots-Tag = "noindex, nofollow" \ No newline at end of file + X-Robots-Tag = "noindex, nofollow" + +# REDIRECTS +# ############################################################################## + +[[redirects]] + from = "/home" + to = "/" + status = 301 + force = true \ No newline at end of file