expandURL(url) {
			if (!/^(?:[^/]+:)?\/\//.test(url))
				url = `${location.protocol}//${location.host}${url}`;

			return url;
		}
Turn the given relative URL into an absolute URL if necessary.

@instance
@memberof LuCI.request
@param {string} url
The URL to convert.

@returns {string}
The absolute URL derived from the given one, or the original URL
if it already was absolute.