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

This commit is contained in:
Eugenio Romano
2017-06-29 15:09:16 +01:00
committed by Eugenio Romano
parent 72a01918ee
commit 3cfe8b1b6f
+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,