Createabsoluteurl Does Not Support Relative Protocol Url Schema

Hi,

I would like to see support for relative protocol absolute URLs of the form "//www.yiiframework.com".

While the createAbsoluteUrl uses the current connection schema if none is specified, this does not work well when content is being proxied and cached further up the chain.

createAbsoluteUrl uses Yii::app()->getRequest()->getHostInfo to build the schema. Unfortunatelly, one cannot pass "//" as schema to this method because the "{http|https)://" is hardcoded in getHostInfo…

May I suggest "//" as a valid option in addition to http and https in schema-related URL building requests?

Cheers,

Luci