From 6266e0797b6d936f15e972da1b89831b5da170c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Wed, 19 Feb 2025 14:56:32 +0100 Subject: [PATCH] fix: Remove 't' parameter from query string in redirect response --- src/http.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http.mjs b/src/http.mjs index 00e4c73..32adfb6 100644 --- a/src/http.mjs +++ b/src/http.mjs @@ -850,7 +850,9 @@ export async function launch(trie, libp2p) { // the same time though, the slug is really just cosmetical as the index // always informs about the actual origin of a domain reply.header("Cache-Control", "public, max-age=31536000, immutable"); - const queryParams = new URLSearchParams(request.query).toString(); + const qp = new URLSearchParams(request.query); + qp.delete("t"); + const queryParams = qp.toString(); return reply.redirect(`/stories?${queryParams}`); }