Adds the appropriate protocol (http or https) to the given URL based on whether the URL contains the string 'localhost'.
Optional
The URL to modify.
A new URL string with the appropriate protocol added.
Adds the appropriate protocol (http or https) to the given URL based on whether the URL contains the string 'localhost'.