fix: mapping part of url if null or empty

This commit is contained in:
2025-02-01 16:26:04 +03:00
parent 612da04cbb
commit 79a992dc69

View File

@ -52,7 +52,7 @@ export default abstract class ApiService {
}
private static combineUrls(...parts: string[]): string {
return parts.map(part => part.replace(/(^\/+|\/+$)/g, '')).join('/');
return parts.map(part => (!part || part == '' ? '/' : part).replace(/(^\/+|\/+$)/g, '')).join('/');
}
protected combinedUrl(request: RequestData) {