base url fix www
This commit is contained in:
parent
845039f9df
commit
440de74e00
@ -29,6 +29,12 @@ export class UrlBasePipe implements PipeTransform {
|
||||
return '';
|
||||
}
|
||||
|
||||
return parts[2];
|
||||
let baseUrl = parts[2];
|
||||
|
||||
if (baseUrl.startsWith('www.')) {
|
||||
baseUrl = baseUrl.substr(4);
|
||||
}
|
||||
|
||||
return baseUrl;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user