diff --git a/examples/ssr_router/src/bin/ssr_router_server.rs b/examples/ssr_router/src/bin/ssr_router_server.rs index 9ecd2c57c99..5e36663f1c7 100644 --- a/examples/ssr_router/src/bin/ssr_router_server.rs +++ b/examples/ssr_router/src/bin/ssr_router_server.rs @@ -37,7 +37,7 @@ async fn render( Query(queries): Query>, State((index_html_before, index_html_after)): State<(String, String)>, ) -> impl IntoResponse { - let url = url.to_string(); + let url = url.path().to_owned(); let renderer = yew::ServerRenderer::::with_props(move || ServerAppProps { url: url.into(),