Skip to content

Commit

Permalink
fix(docs): add canonical url to IndexPage
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanvanherwijnen committed Dec 26, 2024
1 parent e85bbd5 commit 677f24b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/docs/src/pages/IndexPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,14 @@ export default {
<script setup lang="ts">
import { ref, watch } from 'vue'
import FeatureCard from '../components/FeatureCard.vue'
import { useQuasar } from 'quasar'
import { useQuasar, useMeta } from 'quasar'
const $q = useQuasar()
useMeta(() => ({
link: {
material: { rel: 'canonical', href: window?.location.origin }
}
}))
const lang = ref($q.lang.isoName)
watch($q.lang, (newVal) => {
Expand Down

0 comments on commit 677f24b

Please sign in to comment.