I’m trying to use this ({{frappe.utils.get_url_to_form(doc.doctype, doc.name)}}) to get the url.
However the link generate with the sitename( the folder name like site.local ), the one in the file currentsite.txt
sitename
not the the domain name I set in the site configuration file site_config.json. This problem also happen in the links in auto emails.
{
"db_name": "xxxxxxxxx",
"db_password": "xxxxxxxxx",
"db_type": "mariadb",
"domains": [
"domain name"
],
"encryption_key": "xxxxxxxxx",
"nginx_port": 80,
"user_type_doctype_limit": {
"employee_self_service": 10
}
}
Is there a way to change it with my actual domain name?
Thank you in advance for taking the time to look at my question.