From e0e655270eeb70f0a1e2b14b2e4a30c778a7b594 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 14 Nov 2022 12:55:09 +0800 Subject: [PATCH] fix(nc-gui): encode copy record url --- .../nc-gui/components/smartsheet/expanded-form/Header.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue index b21c2d2d5c..8519599e32 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/Header.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/Header.vue @@ -45,9 +45,11 @@ const { copy } = useClipboard() const copyRecordUrl = () => { copy( - `${dashboardUrl?.value}#/${route.params.projectType}/${route.params.projectId}/${route.params.type}/${meta.value?.title}${ - props.view ? `/${props.view.title}` : '' - }?rowId=${primaryKey.value}`, + encodeURI( + `${dashboardUrl?.value}#/${route.params.projectType}/${route.params.projectId}/${route.params.type}/${meta.value?.title}${ + props.view ? `/${props.view.title}` : '' + }?rowId=${primaryKey.value}`, + ), ) message.success('Copied to clipboard') }