π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(TypeError): Failed to construct 'URL': Invalid base URL
Ramesh Manea7a43bdf98a8
diff --git a/packages/nc-gui/utils/urlUtils.ts b/packages/nc-gui/utils/urlUtils.tsindex 8eed17ae10..fa93588213 100644--- a/packages/nc-gui/utils/urlUtils.ts+++ b/packages/nc-gui/utils/urlUtils.ts@@ -110,8 +110,13 @@ export function getFormulaTextSegments(anchorLinkHTML: string) {}export const openLink = (path: string, baseURL?: string, target = '_blank') => {- const url = new URL(path, baseURL)- window.open(url.href, target, 'noopener,noreferrer')+ try {+ const url = new URL(path, baseURL)+ window.open(url.href, target, 'noopener,noreferrer')+ } catch (e) {+ console.error(`Failed constructing URL'${path}'`, e)+ message.error((e as Error)?.message || 'Failed to construct URL')+ }}export const navigateToBlankTargetOpenOption = {