Is your feature request related to a problem? Please describe.
Currently, a website URL can be added to a Location, but the user must enter http:// or https:// for it to display/work correctly on the front end.
Describe the solution you'd like
A method to check website URLs and add missing http:// or https:// prefixes
From another project:
/**
* @param $url
*/
public function updateWebsiteURL(&$url)
{
if ($url && !preg_match('/^(http|https):\/\//', $url)) {
$url = 'http://' . $url;
}
}
Is your feature request related to a problem? Please describe. Currently, a website URL can be added to a Location, but the user must enter http:// or https:// for it to display/work correctly on the front end.
Describe the solution you'd like A method to check website URLs and add missing http:// or https:// prefixes
From another project: