diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index ef49f54..d5e7d64 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -24,6 +24,7 @@
 use Drupal\Core\Theme\ThemeSettings;
 use Drupal\Component\Utility\NestedArray;
 use Drupal\Core\Render\Element;
+use Drupal\Core\Url;
 use Symfony\Component\HttpFoundation\Request;
 
 /**
@@ -1797,7 +1798,7 @@ function template_preprocess_page(&$variables) {
   }
 
   $variables['base_path']         = base_path();
-  $variables['front_page']        = \Drupal::url('<front>');
+  $variables['front_page']        = Url::fromUri('base://')->toString();
   $variables['language']          = $language_interface;
   $variables['language']->dir     = $language_interface->direction ? 'rtl' : 'ltr';
   $variables['logo']              = theme_get_setting('logo.url');
