[fix] check for developer mode before adding port to URL
This commit is contained in:
parent
030d6d89f0
commit
dbb7ecb7fe
1 changed files with 1 additions and 1 deletions
|
|
@ -728,7 +728,7 @@ def get_url(uri=None, full_address=False):
|
|||
|
||||
port = frappe.conf.http_port or frappe.conf.webserver_port
|
||||
|
||||
if host_name and not url_contains_port(host_name) and port:
|
||||
if frappe.conf.developer_mode and host_name and not url_contains_port(host_name) and port:
|
||||
host_name = host_name + ':' + str(port)
|
||||
|
||||
url = urljoin(host_name, uri) if uri else host_name
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue