We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87f3cf7 commit 16f5e35Copy full SHA for 16f5e35
layer/app/components/docs/DocsPageHeaderLinks.vue
@@ -1,12 +1,14 @@
1
<script setup lang="ts">
2
import { useClipboard } from '@vueuse/core'
3
+import { useRuntimeConfig } from '#imports'
4
5
const route = useRoute()
6
+const appBaseURL = useRuntimeConfig().app?.baseURL || '/'
7
8
const { copy, copied } = useClipboard()
9
const { t } = useDocusI18n()
10
-const markdownLink = computed(() => `${window?.location?.origin}/raw${route.path}.md`)
11
+const markdownLink = computed(() => `${window?.location?.origin}${appBaseURL}raw${route.path}.md`)
12
const items = [
13
{
14
label: t('docs.copy.link'),
0 commit comments