Skip to content

Commit 7be9d17

Browse files
Fix queries in ssr_router example (#3587)
1 parent b2cba91 commit 7be9d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ssr_router/src/bin/ssr_router_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async fn render(
4040
Query(queries): Query<HashMap<String, String>>,
4141
State((index_html_before, index_html_after)): State<(String, String)>,
4242
) -> impl IntoResponse {
43-
let url = url.to_string();
43+
let url = url.path().to_owned();
4444

4545
let renderer = yew::ServerRenderer::<ServerApp>::with_props(move || ServerAppProps {
4646
url: url.into(),

0 commit comments

Comments
 (0)