diff --git a/php/public/domain-prefill.js b/php/public/domain-prefill.js
new file mode 100644
index 00000000..c81f2231
--- /dev/null
+++ b/php/public/domain-prefill.js
@@ -0,0 +1,7 @@
+document.addEventListener("DOMContentLoaded", function(event) {
+ // domain
+ let domain = document.getElementById("domain_input");
+ if (domain) {
+ domain.value = window.location.host
+ }
+});
diff --git a/php/templates/containers.twig b/php/templates/containers.twig
index 4249cb2e..a885646f 100644
--- a/php/templates/containers.twig
+++ b/php/templates/containers.twig
@@ -20,6 +20,9 @@
{# Add 2nd tab warning #}
+
+ {# Add domain-prefill #}
+
{% set isAnyRunning = false %}
{% set isAnyRestarting = false %}
@@ -100,7 +103,7 @@
Please note: The domain validation is disabled so any domain will be accepted here! So make sure that you do not make a typo here as you will not be able to change it afterwards!
{% endif %}