base url fix www

This commit is contained in:
_Bastler 2021-10-06 12:59:46 +02:00
parent 845039f9df
commit 440de74e00

View File

@ -29,6 +29,12 @@ export class UrlBasePipe implements PipeTransform {
return ''; return '';
} }
return parts[2]; let baseUrl = parts[2];
if (baseUrl.startsWith('www.')) {
baseUrl = baseUrl.substr(4);
}
return baseUrl;
} }
} }