From 8f842a2df3dc1fa4b0416679696407f6430f6178 Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Tue, 4 Aug 2026 13:49:56 +0200 Subject: [PATCH] Update Brandmeister Repeater Details URL --- frontend/src/main.ts | 2 +- frontend/src/popup.test.ts | 2 +- frontend/src/popup.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/main.ts b/frontend/src/main.ts index 6ed0923..1c46a13 100644 --- a/frontend/src/main.ts +++ b/frontend/src/main.ts @@ -804,7 +804,7 @@ import { buildPopup as _buildPopup } from "./popup"; detail = '' + escapeHtml(loc) + ""; } item.innerHTML = - '' + escapeHtml(r.callsign) + "" + + '' + escapeHtml(r.callsign) + "" + '' + r.freq_tx.toFixed(4) + "" + detail; item.addEventListener("click", function (e) { diff --git a/frontend/src/popup.test.ts b/frontend/src/popup.test.ts index 3616926..c91d998 100644 --- a/frontend/src/popup.test.ts +++ b/frontend/src/popup.test.ts @@ -20,7 +20,7 @@ describe("buildPopup", () => { it("contains callsign as a link", () => { const html = buildPopup(makeRepeater(), mockT); expect(html).toContain("DB0ABC"); - expect(html).toContain("brandmeister.network/?page=repeater&id=1"); + expect(html).toContain("brandmeister.network/#/device/1"); }); it("contains TX and RX frequencies", () => { diff --git a/frontend/src/popup.ts b/frontend/src/popup.ts index 09831a6..ff1f4a3 100644 --- a/frontend/src/popup.ts +++ b/frontend/src/popup.ts @@ -5,7 +5,7 @@ import { escapeHtml } from "./format"; export function buildPopup(r: Repeater, t: TranslateFunction): string { const bandClass = r.band === "2m" ? "band-2m" : "band-70cm"; let html = '
'; - html += '

' + escapeHtml(r.callsign) + ' ' + escapeHtml(r.band) + "

"; + html += '

' + escapeHtml(r.callsign) + ' ' + escapeHtml(r.band) + "

"; html += ""; html += ""; if (r.freq_rx)
" + t("popup_tx") + "" + r.freq_tx.toFixed(4) + " MHz