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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user