getResourceLink function
Constructs a full URL to the project resources.
Implementation
String getResourceLink(String path) {
final base = projectUrl.endsWith('/') ? projectUrl.substring(0, projectUrl.length - 1) : projectUrl;
final suffix = path.startsWith('/') ? path : '/$path';
return '$base$suffix';
}