How do I get the base_path in Drupal 8? When I use the
base_path() function it always returns just the
/. I know in Drupal 7 you could set the base_url in the settings.php file, but how do I set it in Drupal 8?
I'm trying to create an absolute url for social media sharing.