fix for TranslateModule not exported (#1355)

fix lint errors
Squashing and merging the PR after discussion with Ed.
Co-authored-by: Nestor Lazcano <nestor_ronal09@hotmail.com>
This commit is contained in:
nestorlazcano-fintecheando
2021-08-18 19:07:59 +05:30
committed by GitHub
parent bcff5b42cb
commit de349d1ce2
10 changed files with 54 additions and 19 deletions
+7 -1
View File
@@ -18,7 +18,13 @@ export class ApiPrefixInterceptor implements HttpInterceptor {
* Intercepts a Http request and prefixes it with `environment.serverUrl`.
*/
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
request = request.clone({ url: environment.serverUrl + request.url });
/**
* Ignore URLs that are complete for i18n
*/
if (!request.url.includes('http:') && !request.url.includes('https:')) {
request = request.clone({ url: environment.serverUrl + request.url });
}
return next.handle(request);
}