We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0324bf2 commit b012402Copy full SHA for b012402
nexus/src/external_api/console_api.rs
@@ -586,11 +586,17 @@ pub async fn console_index_or_login_redirect(
586
// otherwise redirect to idp
587
588
// put the current URI in the query string to redirect back to after login
589
- let uri = rqctx.request.lock().await.uri().to_string();
+ let uri = rqctx
590
+ .request
591
+ .lock()
592
+ .await
593
+ .uri()
594
+ .path_and_query()
595
+ .map(|p| p.to_string());
596
597
Ok(Response::builder()
598
.status(StatusCode::FOUND)
- .header(http::header::LOCATION, get_login_url(Some(uri)))
599
+ .header(http::header::LOCATION, get_login_url(uri))
600
.body("".into())?)
601
}
602
0 commit comments