From fe1ab45fd36519c8de48d0c81f644117480769b4 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 28 Sep 2026 01:11:46 +0700 Subject: [PATCH] docs: replace client-side status stub with a server redirect src/pages/status.mdx opened the status page with window.open on mount (blocked by popup blockers without a user gesture) and then went back in history, while the sidebar already links out to the status page via _meta. Serve a server-side redirect from next.config.mjs instead and remove the stub, mirroring the existing /build/verify redirect. --- next.config.mjs | 9 +++++++++ src/pages/status.mdx | 16 ---------------- 2 files changed, 9 insertions(+), 16 deletions(-) delete mode 100644 src/pages/status.mdx diff --git a/next.config.mjs b/next.config.mjs index 17661cc0..b5e66eaa 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -32,6 +32,15 @@ const config = withNextra({ destination: "/", permanent: false, }, + { + // /status was a client-side stub that opened the status page via + // window.open (blocked by popup blockers) and then navigated back. + // Redirect server-side instead; the sidebar already links out via + // _meta, so the stub page is removed. + source: "/status", + destination: "https://status.inkonchain.com/", + permanent: false, + }, ]; }, eslint: { diff --git a/src/pages/status.mdx b/src/pages/status.mdx deleted file mode 100644 index 99fa0780..00000000 --- a/src/pages/status.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import { useEffect } from 'react' -import { useRouter } from 'next/router' - -export default function StatusPage() { - useEffect(() => { - // Open in new tab and redirect current page back to previous page - window.open('https://status.inkonchain.com/', '_blank') - window.history.back() - }, []) - - return ( -
- Opening Status Page in new tab... -
- ) -}