about summary refs log tree commit diff stats
path: root/src/assets/javascripts/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/assets/javascripts/utils.js')
-rw-r--r--src/assets/javascripts/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assets/javascripts/utils.js b/src/assets/javascripts/utils.js
index dce7f349..2b69e9a6 100644
--- a/src/assets/javascripts/utils.js
+++ b/src/assets/javascripts/utils.js
@@ -188,7 +188,7 @@ async function processDefaultCustomInstances(service, frontend, network, documen
 			event.preventDefault()
 			let frontendCustomInstanceInput = frontendNetworkElement.getElementsByClassName("custom-instance")[0]
 			let url = new URL(frontendCustomInstanceInput.value)
-			let protocolHostVar = url.href
+			let protocolHostVar = protocolHost(url)
 			if (frontendCustomInstanceInput.validity.valid && !redirects[frontend][network].includes(protocolHostVar)) {
 				if (!frontendCustomInstances.includes(protocolHostVar)) {
 					frontendCustomInstances.push(protocolHostVar)