diff --git a/apps/blog/src/app/(blog)/layout.tsx b/apps/blog/src/app/(blog)/layout.tsx index 9e69c85883..74b84449db 100644 --- a/apps/blog/src/app/(blog)/layout.tsx +++ b/apps/blog/src/app/(blog)/layout.tsx @@ -52,7 +52,7 @@ export function baseOptions() { }, { text: "Prisma Partners", - url: "/partners", + url: "https://www.prisma.io/partners", icon: "fa-regular fa-lightbulb", }, { @@ -90,7 +90,7 @@ export function baseOptions() { ], }, { - url: "/docs", + url: "https://www.prisma.io/docs", text: "Docs", }, { diff --git a/apps/blog/src/components/utm-persistence.tsx b/apps/blog/src/components/utm-persistence.tsx index 4d2b80d60c..2ba8c3b377 100644 --- a/apps/blog/src/components/utm-persistence.tsx +++ b/apps/blog/src/components/utm-persistence.tsx @@ -2,6 +2,7 @@ import { useEffect } from "react"; import { usePathname, useRouter } from "next/navigation"; +import { BLOG_PREFIX } from "@/lib/url"; import { clearStoredUtmParams, CONSOLE_HOST, @@ -75,12 +76,18 @@ export function UtmPersistence() { } const nextHref = `${targetUrl.pathname}${targetUrl.search}${targetUrl.hash}`; + const internalPathname = + targetUrl.pathname === BLOG_PREFIX + ? "/" + : targetUrl.pathname.replace(new RegExp(`^${BLOG_PREFIX}(?:/|$)`), "/"); + const nextInternalHref = + `${internalPathname}${targetUrl.search}${targetUrl.hash}`; const isModifiedClick = event.metaKey || event.ctrlKey || event.shiftKey || event.altKey; if (isInternalLink && anchor.target !== "_blank" && !isModifiedClick) { event.preventDefault(); - router.push(nextHref); + router.push(nextInternalHref); return; } diff --git a/apps/site/src/app/changelog/[...slug]/page.tsx b/apps/site/src/app/changelog/[...slug]/page.tsx index 3e3edf89e3..f78c17dacf 100644 --- a/apps/site/src/app/changelog/[...slug]/page.tsx +++ b/apps/site/src/app/changelog/[...slug]/page.tsx @@ -35,7 +35,7 @@ export default async function ReleaseNotesPage({ const toc = (page.data.toc as TOCItem[] | undefined) ?? []; return ( -
+
{/* Title + meta */} @@ -46,7 +46,7 @@ export default async function ReleaseNotesPage({ > ← Back to Changelog -

+

{page.data.title}

diff --git a/apps/site/src/app/changelog/page.tsx b/apps/site/src/app/changelog/page.tsx index 1b80dcfa96..a5a31f6283 100644 --- a/apps/site/src/app/changelog/page.tsx +++ b/apps/site/src/app/changelog/page.tsx @@ -28,22 +28,27 @@ export default async function ChangelogPage() { ); return ( -
-
-

- - Changelog -

-

- The Latest News from Prisma -

-

- Here you’ll find all improvements and updates we’ve made to our - products. -

-
+
+
+
+
+
+
+ + Changelog +
+

+ The Latest News from Prisma +

+
+

+ Here you’ll find all improvements and updates we’ve made to our + products. +

+
+
-
+
{entriesWithPreview.map(({ entry, summary }) => { const tags = entry.data.tags ?? [];