normalize base_url for sso_callback_path

This commit is contained in:
stefan0xC 2026-01-06 16:47:52 +01:00
parent 9f1df42259
commit 8f1a80be8c
No known key found for this signature in database
GPG key ID: 817020C608FE9C09

View file

@ -1330,7 +1330,9 @@ fn generate_smtp_img_src(embed_images: bool, domain: &str) -> String {
}
fn generate_sso_callback_path(domain: &str) -> String {
format!("{domain}/identity/connect/oidc-signin")
// normalize base_url
let base_url = domain.trim_end_matches('/');
format!("{base_url}/identity/connect/oidc-signin")
}
/// Generate the correct URL for the icon service.