From e1d1a24ff339186ddb5250ddf75314b90c030b74 Mon Sep 17 00:00:00 2001 From: actions-user Date: Thu, 12 Jun 2025 02:26:57 +0800 Subject: [PATCH] update 2025-06-12 02:26:57 --- .../luci-static/resources/view/ddns-go/config.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/luci-app-ddns-go/htdocs/luci-static/resources/view/ddns-go/config.js b/luci-app-ddns-go/htdocs/luci-static/resources/view/ddns-go/config.js index 303c487a..5e529236 100644 --- a/luci-app-ddns-go/htdocs/luci-static/resources/view/ddns-go/config.js +++ b/luci-app-ddns-go/htdocs/luci-static/resources/view/ddns-go/config.js @@ -48,13 +48,10 @@ function renderStatus(isRunning, listen_port, noweb) { } if (isRunning && noweb !== '1') { - html += String.format( - ' %s', - window.location.origin, - listen_port, - _('Open Web Interface') - ); - } + const baseUrl = `${window.location.protocol}//${window.location.hostname}`; + const fullUrl = `${baseUrl}:${listen_port}`; + html += String.format(' %s', fullUrl, _('Open Web Interface')); + } return html; }