This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit b82188d9 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Merge branch '314-images-von-aufgaben-werden-nicht-korrekt-angezeigt' into 'development'

Resolve "Images von Aufgaben werden nicht korrekt angezeigt"

See merge request sharing/codeability-sharing-platform!123
parents 8f43e297 cdedfd15
Branches
2 merge requests!124Bring Hotfix for images to production,!123Resolve "Images von Aufgaben werden nicht korrekt angezeigt"
......@@ -244,7 +244,7 @@ public class SearchService {
}
String httpUrlToRepo = metaData.getProject().getUrl();
String commitId = metaData.getFile().getCommit_id();
String baseRepoURL = httpUrlToRepo + "/-/raw/" + commitId;
String baseRepoURL = httpUrlToRepo + "/-/raw/" + commitId + "/";
final URI resolvedImageUrl = new URI(baseRepoURL).resolve(url);
metaData.getMetadata().setImage(resolvedImageUrl.toASCIIString());
return;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment