Skip to content

Commit

Permalink
fix: Remove 't' parameter from query string in redirect response
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDaub committed Feb 19, 2025
1 parent e97e002 commit 6266e07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/http.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
}

Expand Down

0 comments on commit 6266e07

Please # to comment.