Skip to content

Commit 677f24b

Browse files
fix(docs): add canonical url to IndexPage
1 parent e85bbd5 commit 677f24b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/docs/src/pages/IndexPage.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,14 @@ export default {
104104
<script setup lang="ts">
105105
import { ref, watch } from 'vue'
106106
import FeatureCard from '../components/FeatureCard.vue'
107-
import { useQuasar } from 'quasar'
107+
import { useQuasar, useMeta } from 'quasar'
108108
109109
const $q = useQuasar()
110+
useMeta(() => ({
111+
link: {
112+
material: { rel: 'canonical', href: window?.location.origin }
113+
}
114+
}))
110115
111116
const lang = ref($q.lang.isoName)
112117
watch($q.lang, (newVal) => {

0 commit comments

Comments
 (0)