cleanup: remove tenant variant logic and enforce config-driven UI
This commit is contained in:
@@ -179,7 +179,9 @@ export class ApiService {
|
||||
private resolveImageUrl(url: string): string {
|
||||
if (!url) return '';
|
||||
if (url.startsWith('http://') || url.startsWith('https://') || url.startsWith('/')) return url;
|
||||
const origin = `https://${environment.domain}`;
|
||||
const origin = typeof window !== 'undefined'
|
||||
? window.location.origin
|
||||
: '';
|
||||
if (url.startsWith('./')) return `${origin}/${url.slice(2)}`;
|
||||
return `${origin}/${url}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user