From cefdf1779948dfcd68d7e0eea0b4df07e2ec6554 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 15 Apr 2026 23:31:00 -0400 Subject: [PATCH] feat(host_agent): use public_base_url helper for rotate-token URL --- host_agent/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host_agent/routes.py b/host_agent/routes.py index c502a36..e16e92a 100644 --- a/host_agent/routes.py +++ b/host_agent/routes.py @@ -325,7 +325,7 @@ async def settings_list(): new_host_id = request.args.get("host_id") install_url = None if new_token and new_host_id: - install_url = f"{request.host_url.rstrip('/')}/plugins/host_agent/install.sh?token={new_token}" + install_url = f"{public_base_url(request)}/plugins/host_agent/install.sh?token={new_token}" return await render_template( "settings_list.html",