Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): convert slug to lowercase before encoding

Ramesh Manee5e6757f6304
diff --git a/packages/nc-gui/utils/urlUtils.ts b/packages/nc-gui/utils/urlUtils.ts
index 1329d58606..8eed17ae10 100644
--- a/packages/nc-gui/utils/urlUtils.ts
+++ b/packages/nc-gui/utils/urlUtils.ts
@@ -329,8 +329,8 @@ export function toReadableUrlSlug(parts: (string | undefined)[] = []): string {
if (!part?.trim()) return ''
return encodeURIComponent(
- part.trim().replace(/\s+/g, '-'), // replace one or more spaces with a single dash
- ).toLowerCase()
+ part.trim().toLowerCase().replace(/\s+/g, '-'), // replace one or more spaces with a single dash
+ )
})
.filter(Boolean) // remove empty parts
.join('-') ?? ''