From 03a4ee11949305f7a91aaa6f9e7878efd3a8bc17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=8A=E6=AC=A7?= Date: Sun, 31 Mar 2024 04:32:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Prevent=20the=20query=20from=20b?= =?UTF-8?q?eing=20passed=20directly=20to=20the=20server=20renderer.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/macro/src/utils/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/macro/src/utils/app.rs b/packages/macro/src/utils/app.rs index beb5dfe..23a0ef3 100644 --- a/packages/macro/src/utils/app.rs +++ b/packages/macro/src/utils/app.rs @@ -143,6 +143,7 @@ pub fn root(input: DeriveApp) -> TokenStream { use ::stylist::manager::{render_static, StyleManager}; use ::yew::ServerRenderer; + let url = url.split('?').next().unwrap().to_string(); let (writer, reader) = render_static(); let renderer = ServerRenderer::<<#ident as ::hikari_boot::Application>::ServerApp>::with_props({