diff --git a/src/app.config.json b/src/app.config.json index 0a6b8f387..24bc84b90 100644 --- a/src/app.config.json +++ b/src/app.config.json @@ -1,5 +1,6 @@ { "ecmHost": "{protocol}//{hostname}{:port}", + "baseShareUrl": null, "providers": "ECM", "authType": "BASIC", "application": { diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 0274342b7..b1f2e17a7 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -114,12 +114,16 @@ export class AppComponent implements OnInit { const languagePicker = this.config.get('languagePicker'); this.store.dispatch(new SetLanguagePickerAction(languagePicker)); + const baseShareUrl = + this.config.get('baseShareUrl') || + this.config.get('ecmHost'); + const state: AppState = { ...INITIAL_APP_STATE, appName: this.config.get('application.name'), headerColor: this.config.get('headerColor'), logoPath: this.config.get('application.logo'), - sharedUrl: this.config.get('ecmHost') + '/#/preview/s/' + sharedUrl: `${baseShareUrl}/#/preview/s/` }; this.store.dispatch(new SetInitialStateAction(state));