Skip to content

Commit

Permalink
Fix queries in ssr_router example
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Bilbie authored and Oliver-Bilbie committed Sep 7, 2024
1 parent 15ac51c commit d9623de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ssr_router/src/bin/ssr_router_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async fn render(
Query(queries): Query<HashMap<String, String>>,
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::<ServerApp>::with_props(move || ServerAppProps {
url: url.into(),
Expand Down

0 comments on commit d9623de

Please sign in to comment.