https instead of http?

I have activated Reset Password function to get the link to reset the password through email.Is possible to change the link to https instead of http?from: http:…
to: https:…

on phpfn.php i have to change last line of DomainUrl() function to get it to work:// Get domain URL
function DomainUrl() {
$ssl = IsHttps();
$port = strval(ServerVar(“SERVER_PORT”));
if (ServerVar(“HTTP_X_FORWARDED_PROTO”) != “” && strval(ServerVar(“HTTP_X_FORWARDED_PORT”)) != “”)
$port = strval(ServerVar(“HTTP_X_FORWARDED_PORT”));
$defPort = ($ssl) ? “443” : “80”;
$port = ($port == $defPort) ? “” : (“:” . $port);
//return ($ssl ? “https” : “http”) . “://” . ServerVar(“SERVER_NAME”) . $port; //old way
return ($ssl ? “https” : “https”) . “://” . ServerVar(“SERVER_NAME”) . $port; //working solution
}is possible to override this value from global script?

If v2020, you can set in server side Global Code, e.g.Config(“FULL_URL_PROTOCOLS.resetpwd”, “https”);

Hi and thank for the reply.
I used on Global Code the following code:
Config(“FULL_URL_PROTOCOLS.resetpwd”, “https”); //set https for reset passwordbut now im getting “p” char after “https”
httpsp://…Any idea how to solve?thanks again

Click Tools → Update Template to update to the latest template or download here:
https://phpmaker.dev/templatefile.php