Skip to content

Commit 39430b6

Browse files
Add missing redirection in rustdoc_redirector_handler
1 parent f085c5c commit 39430b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/web/rustdoc.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,11 @@ pub(crate) async fn rustdoc_redirector_handler(
253253
.into_response())
254254
} else {
255255
Ok(axum_cached_redirect(
256-
format!("/crate/{crate_name}/{}", matched_release.req_version),
256+
EscapedURI::new(
257+
&format!("/crate/{crate_name}/{}", matched_release.req_version),
258+
uri.query(),
259+
)
260+
.as_str(),
257261
CachePolicy::ForeverInCdn,
258262
)?
259263
.into_response())

0 commit comments

Comments
 (0)