From 8707e3de6da06589cb944544ec0863fd590d0210 Mon Sep 17 00:00:00 2001 From: Petar Cirkovic Date: Mon, 16 Nov 2026 10:07:51 +0100 Subject: [PATCH] CORE-4571: add a canonical tag to every utilities page The pages served no canonical, so Google counted each URL with a stray query string (?ref=..., ?auth=) as a separate page and filed 187 of them as duplicates without a chosen canonical. The tag lives in _app so it also covers pages that do not render Meta. It uses the route pathname, which carries no query string, on jam.dev, the host the site is proxied under. --- pages/_app.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pages/_app.tsx b/pages/_app.tsx index ee3961a..c6c8951 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -3,8 +3,11 @@ import { ThemeProvider } from "@/components/theme-provider"; import type { AppProps } from "next/app"; import { RecordVideoFeedback } from "@/components/RecordVideoFeedback"; import { useSearchParams } from "next/navigation"; +import Head from "next/head"; +import { useRouter } from "next/router"; export default function App({ Component, pageProps }: AppProps) { + const { pathname } = useRouter(); const params = useSearchParams(); const showButton = Boolean(params?.get("report-a-bug")); @@ -15,6 +18,9 @@ export default function App({ Component, pageProps }: AppProps) { enableSystem disableTransitionOnChange > + + + {showButton && }