diff --git a/src/app/zones/zone/zone-detail.component.ts b/src/app/zones/zone/zone-detail.component.ts index 197a3417..8216525a 100644 --- a/src/app/zones/zone/zone-detail.component.ts +++ b/src/app/zones/zone/zone-detail.component.ts @@ -23,7 +23,7 @@ export class ZoneDetailComponent { consoleUrlKey; constructor(private appConfigService: AppConfigService) { - this.consoleUrlKey = this.appConfigService.getConfiguration().zones.consoleUrlKey; + this.consoleUrlKey = this.appConfigService.getConfiguration()?.zones?.consoleUrlKey || 'console'; } switchToCodeMode(): void { diff --git a/src/config.json b/src/config.json index 866b3ecc..b16a4663 100644 --- a/src/config.json +++ b/src/config.json @@ -32,6 +32,6 @@ "kubernetesAPI": "Kubernetes API", "oauth": "API Token" }, - "consoleUrlKey": "consoleUrl" + "consoleUrlKey": "console" } }