Fix host configuration in demo-shell when no port is present (#1971)

This commit is contained in:
Eugenio Romano
2017-06-15 13:01:30 +01:00
committed by Denys Vuika
parent 66a55fbb67
commit 3d0439552d
+2 -2
View File
@@ -29,8 +29,8 @@ declare var document: any;
export class AppComponent {
searchTerm: string = '';
ecmHost: string = `http://${window.location.hostname}:${window.location.port}/ecm`;
bpmHost: string = `http://${window.location.hostname}:${window.location.port}/bpm`;
ecmHost: string = `http://${window.location.hostname}` + (window.location.port ? `:${window.location.port}` : '') + `/ecm`;
bpmHost: string = `http://${window.location.hostname}` + (window.location.port ? `:${window.location.port}` : '') + `/bpm`;
constructor(private authService: AlfrescoAuthenticationService,
private router: Router,