I prefer using a single parameter `$absolute`

* false: default.
* true: absolute URL with the current scheme
* 'http': absolute URL with 'http'
* 'https': absolute URL with 'https'