From 0e24124d4b609b3c7bfe0a0e5e2eccbe700f6c53 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Tue, 21 Apr 2026 17:50:30 +0200 Subject: [PATCH] Updated mac - ogLog --- .../shared/client-logs-modal/client-logs-modal.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogWebconsole/src/app/components/groups/shared/client-logs-modal/client-logs-modal.component.ts b/ogWebconsole/src/app/components/groups/shared/client-logs-modal/client-logs-modal.component.ts index 3c967bd..676334c 100644 --- a/ogWebconsole/src/app/components/groups/shared/client-logs-modal/client-logs-modal.component.ts +++ b/ogWebconsole/src/app/components/groups/shared/client-logs-modal/client-logs-modal.component.ts @@ -18,7 +18,7 @@ export class ClientLogsModalComponent { private configService: ConfigService, private sanitizer: DomSanitizer ) { - const mac = (this.data.client.mac || '').replace(/:/g, '\\:'); + const mac = encodeURIComponent((this.data.client.mac || '').replace(/:/g, '\\:')); const iframeUrlString = `${this.configService.logUrl}/d-solo/opengnsys-clients/filebeat-clients?orgId=1&timezone=browser&var-hostname=$__all&var-mac=${mac}&refresh=5s&panelId=1&__feature.dashboardSceneSolo`; this.iframeUrl = this.sanitizer.bypassSecurityTrustResourceUrl(iframeUrlString); this.grafanaUrl = `${this.configService.logUrl}/d/opengnsys-clients/filebeat-clients?orgId=1&from=now-5m&to=now&timezone=browser&var-hostname=$__all&var-mac=${mac}&refresh=5s&viewPanel=panel-1`;