From 5b3213d0e26e03b36c97559f2a337eac0d05a4f2 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 7 Nov 2024 07:22:13 +0000 Subject: [PATCH] refactor: fallbacks to htttps scheme as default --- packages/nc-gui/components/virtual-cell/Button.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/virtual-cell/Button.vue b/packages/nc-gui/components/virtual-cell/Button.vue index 0e2c27a2f0..2c730e513c 100644 --- a/packages/nc-gui/components/virtual-cell/Button.vue +++ b/packages/nc-gui/components/virtual-cell/Button.vue @@ -51,7 +51,7 @@ const triggerAction = async () => { const componentProps = computed(() => { if (column.value.colOptions.type === 'url') { let url = `${cellValue.value?.url}` - url = /^(https?|ftp|mailto|file):\/\//.test(url) ? url : url.trim() ? `http://${url}` : '' + url = /^(https?|ftp|mailto|file):\/\//.test(url) ? url : url.trim() ? `https://${url}` : '' // if url params not encoded, encode them using encodeURI try {