fix: link to pdf

This commit is contained in:
Ondrej Vlach 2023-12-09 17:36:27 +01:00
parent 5af90d846c
commit 46cba0eef9
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70

View File

@ -28,7 +28,7 @@ default_person: &State<DefaultPerson>, frontend_svc: &State<FrontendSVCConfig>,
cv,
lang: LanguageDescription::new(language.language.as_str(), "ovlach_frontend"),
contact_svc: frontend_svc.inner().contact_service.clone(),
pdf_download_url: format!("{}/cv/{}/{}/output.pdf", frontend_svc.inner().pdf_service.clone(), default_person.default_person_name, language.language) // route: /cv/<username>/<language>/output.pdf
pdf_download_url: format!("{}/cv/{}/{}/output.pdf", frontend_svc.inner().pdf_service.clone(), default_person.default_person_name, language.simple_language) // route: /cv/<username>/<language>/output.pdf
},
Err(e) => {
error!("Can't fetch CV data from backend {:?}", e);