diff --git a/packages/nc-gui/components/general/HelpAndSupport.vue b/packages/nc-gui/components/general/HelpAndSupport.vue index e8e8f7c259..432ed2a6cd 100644 --- a/packages/nc-gui/components/general/HelpAndSupport.vue +++ b/packages/nc-gui/components/general/HelpAndSupport.vue @@ -10,7 +10,7 @@ const { project } = storeToRefs(useProject()) const route = useRoute() const openSwaggerLink = () => { - openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.value.ncSiteUrl) + openLink(`./api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.value.ncSiteUrl) } diff --git a/packages/nc-gui/pages/[projectType]/[projectId]/index.vue b/packages/nc-gui/pages/[projectType]/[projectId]/index.vue index 64729b1ef9..e2d5fce8ed 100644 --- a/packages/nc-gui/pages/[projectType]/[projectId]/index.vue +++ b/packages/nc-gui/pages/[projectType]/[projectId]/index.vue @@ -365,7 +365,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => { v-if="isUIAllowed('apiDocs') && !isMobileMode" v-e="['e:api-docs']" class="nc-project-menu-item group" - @click.stop="openLink(`/api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.ncSiteUrl)" + @click.stop="openLink(`./api/v1/db/meta/projects/${route.params.projectId}/swagger`, appInfo.ncSiteUrl)" > {{ $t('activity.account.swagger') }}