-import { APP_BASE_HREF } from '@angular/common';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { ErrorHandler, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
provide: HTTP_INTERCEPTORS,
useClass: ApiInterceptorService,
multi: true
- },
- {
- provide: APP_BASE_HREF,
- useValue: window['base-href']
}
],
bootstrap: [AppComponent]
<head>
<meta charset="utf-8">
<title>Ceph</title>
- <base href="/">
<script>
- window['base-href'] = window.location.pathname;
+ document.write('<base href="' + document.location+ '" />');
</script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">