From 80dac52005f379528e3cd838724f0c08f699dc43 Mon Sep 17 00:00:00 2001 From: Guilherme Date: Wed, 8 Apr 2026 23:09:15 +0100 Subject: [PATCH] fix: custom domain redirect --- src/server/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/app.ts b/src/server/app.ts index d481c760..54ec2545 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -126,7 +126,7 @@ if (env.allowOpenapi) { // Custom domain: only for root path so /p/:slug and /status/:slug are not intercepted app.use('/*', async (req, res, next) => { - if (req.method === 'GET' && req.accepts('html')) { + if (req.method === 'GET' && req.originalUrl === '/' && req.accepts('html')) { const customDomain = customDomainManager.findPageDomain(req.hostname); if (customDomain) { if (customDomain.type === 'static') {