(Drupal 7.22)
We need to create a menu link to an external site, "https://example.com/some/path"
/some/path
is static, whereas "https://example.com" depends on site instance, such as
web-dev.example.com
web-qa.exmple.com
web-rc.example.com
I would think that this could be accomplished with $GLOBALS['base_root']
;
for example:
$url = $GLOBALS['base_root'] . '/some/path';
On local (laptop) $GLOBALS['base_root']
resolves correctly, but on CentoOS
$GLOBALS['base_root']
resolves to [http://default]
How do we dynamically get the actual current site domain?
This can't be so hard, what are we missing?