From 72b1db0ae51773e673ca7037a8ab6fbd360f7ec3 Mon Sep 17 00:00:00 2001 From: Maharshi Patel <39730881+maharshivpatel@users.noreply.github.com> Date: Wed, 1 May 2024 02:01:48 +0530 Subject: [PATCH] revert: fix: pointless conditions about systemd/supervisor (#26267) commit added port numbers in urls which broke links on fc. --- frappe/utils/data.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frappe/utils/data.py b/frappe/utils/data.py index 9e6f6f8696..748e0c8954 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -1779,7 +1779,13 @@ def get_url(uri: str | None = None, full_address: bool = False) -> str: port = frappe.conf.http_port or frappe.conf.webserver_port - if host_name and not url_contains_port(host_name) and port: + if ( + not frappe.conf.restart_supervisor_on_update + and not frappe.conf.restart_systemd_on_update + and host_name + and not url_contains_port(host_name) + and port + ): host_name = host_name + ":" + str(port) return urljoin(host_name, uri) if uri else host_name