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 {