diff --git a/src/helpers/web/WebPanelServer.cpp b/src/helpers/web/WebPanelServer.cpp index aa73b5fb..3c3e2938 100644 --- a/src/helpers/web/WebPanelServer.cpp +++ b/src/helpers/web/WebPanelServer.cpp @@ -1661,7 +1661,12 @@ const char kWebPanelAppHtml[] PROGMEM = R"HTML( } const renderNeighbourId = (neighbour) => { const shortId = escapeHtml(neighbour.id || "--"); - return shortId; + const fullId = typeof neighbour.full_id === "string" ? neighbour.full_id.trim() : ""; + if (!/^[0-9A-Fa-f]{64}$/.test(fullId)) { + return shortId; + } + const href = "https://meshcoretel.ru/" + encodeURIComponent(fullId.toUpperCase()); + return `${shortId}`; }; const rows = neighbours.map((neighbour) => ` ${renderNeighbourId(neighbour)}