diff --git a/config/schema/uptime_widget.schema.yml b/config/schema/uptime_widget.schema.yml
index 1b01158..5c62f1a 100644
--- a/config/schema/uptime_widget.schema.yml
+++ b/config/schema/uptime_widget.schema.yml
@@ -20,6 +20,8 @@ uptime_widget.settings:
       type: boolean
     notice_enabled:
       type: boolean
+    url_name:
+      type: string
     year:
       type: string
     prepend:
diff --git a/src/Form/UptimeAdminSettingsForm.php b/src/Form/UptimeAdminSettingsForm.php
index 84b735c..ee750d6 100644
--- a/src/Form/UptimeAdminSettingsForm.php
+++ b/src/Form/UptimeAdminSettingsForm.php
@@ -227,12 +227,18 @@ class UptimeAdminSettingsForm extends ConfigFormBase {
     // For the examples we use real data.
     // Current domain name without the leading protocol.
     $host = $config->get('url_name');
+    // Set the default option as stored.
+    $default = $host;
     if (!isset($host) || empty($host)) {
       $config->set('url_name', parse_url($GLOBALS['base_url'], PHP_URL_HOST))->save();
     }
     if ($host != parse_url($GLOBALS['base_url'], PHP_URL_HOST)) {
       $host = parse_url($GLOBALS['base_url'], PHP_URL_HOST);
     }
+    // Force $default to be a valid option if not equal to one of the three.
+    if ($default != $host && $default != $this->config('system.site')->get('name') && $default != ' ') {
+      $default = $host;
+    }
     $year = $config->get('year');
     $notice = $config->get('prepend') . ' ©' . (($year != date('Y') && !empty($year)) ? $year . '-' . date('Y') : date('Y'));
     $form['notice']['url_name'] = [
@@ -244,7 +250,7 @@ class UptimeAdminSettingsForm extends ConfigFormBase {
         $this->config('system.site')->get('name') => '<strong>' . $notice . ' ' . $this->config('system.site')->get('name') . '</strong> ' . $this->t("(Site name. Preferable if the site name is a person's full name or a company name.)"),
         ' ' => '<strong>' . $notice . '</strong> ' . $this->t('(Leaving out the designation of owner is not recommended.)'),
       ],
-      '#default_value' => $host,
+      '#default_value' => $default,
       '#description' => $this->t("'Year of first publication' is not used until entered below, for example © 2009-") . date('Y') . '. ' . t('Save this form to refresh above examples.'),
     ];
 
