|
@@ -613,6 +613,9 @@ def get_url(uri=None, full_address=False): |
|
|
if not uri and full_address: |
|
|
if not uri and full_address: |
|
|
uri = frappe.get_request_header("REQUEST_URI", "") |
|
|
uri = frappe.get_request_header("REQUEST_URI", "") |
|
|
|
|
|
|
|
|
|
|
|
if frappe.conf.http_port: |
|
|
|
|
|
host_name = host_name + ':' + str(frappe.conf.http_port) |
|
|
|
|
|
|
|
|
url = urllib.basejoin(host_name, uri) if uri else host_name |
|
|
url = urllib.basejoin(host_name, uri) if uri else host_name |
|
|
|
|
|
|
|
|
return url |
|
|
return url |
|
|