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",