Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
/root/Elgg/engine/lib/output.php

Converts shorthand urls to absolute urls.If the url is already absolute or protocol-relative, no change is made.

elgg_normalize_url(''); // 'http://my.site.com/' elgg_normalize_url('dashboard'); // 'http://my.site.com/dashboard' elgg_normalize_url('http://google.com/'); // no change elgg_normalize_url('//google.com/'); // no change

Parameters
string$urlThe URL to normalize
Returns
string The absolute url