Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit d5ecf5c9 authored by Pierre Jarriges's avatar Pierre Jarriges
Browse files

Merge branch 'dev' into 'master'

fix static_view image_uri

See merge request !5
parents 6f2b5103 8c36b5e7
No related branches found
No related tags found
1 merge request!5fix static_view image_uri
...@@ -44,7 +44,10 @@ pub fn create_static_view(app_state: &AppState, article: &Article) -> Result<(), ...@@ -44,7 +44,10 @@ pub fn create_static_view(app_state: &AppState, article: &Article) -> Result<(),
.to_owned(); .to_owned();
if !art_image_uri.is_empty() { if !art_image_uri.is_empty() {
art_image_uri = format!("/assets/images/{}", art_image_uri); art_image_uri = format!(
"{}://{}/assets/images/{}",
app_state.env.server_protocol, app_state.env.server_host, art_image_uri,
);
} }
let default_url = String::new(); let default_url = String::new();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment