Browse Source

refactor: fallbacks to htttps scheme as default

pull/9772/head
Pranav C 2 weeks ago
parent
commit
5b3213d0e2
  1. 2
      packages/nc-gui/components/virtual-cell/Button.vue

2
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 {

Loading…
Cancel
Save